将按钮添加到Google表格并在点击时将值设置为单元格 [英] Adding Buttons To Google Sheets and Set value to Cells on clicking
本文介绍了将按钮添加到Google表格并在点击时将值设置为单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Google Script的新手。
我有一个带有5列的Google表格,每列需要一个按钮(文本 1,2,3,4,5
)。
然后在每个按钮上单击我需要将按钮的文本设置为相应的单元格并隐藏点击的按钮。
是否有可能?
解决方案
您可以插入看起来像按钮的图像。然后附加一个脚本到图像。
- 插入菜单
- 图像
您可以插入任何图像。图像可以在电子表格中编辑
按钮图像
为图片指定一个函数名称:
p>
I am new to Google Script.
I have a Google Sheet with 5 columns, on each column I need a button (with text 1,2,3,4,5
).
And on each button click I need to set text of button to corresponding cell and hide the clicked button.
Is it possible?
解决方案
You can insert an image that looks like a button. Then attach a script to the image.
- INSERT menu
- Image
You can insert any image. The image can be edited in the spreadsheet
Image of a Button
Assign a function name to an image:
这篇关于将按钮添加到Google表格并在点击时将值设置为单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文