将按钮添加到 Google 表格并在单击时将值设置为单元格 [英] Adding Buttons To Google Sheets and Set value to Cells on clicking

查看:27
本文介绍了将按钮添加到 Google 表格并在单击时将值设置为单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Google Script 的新手.

I am new to Google Script.

我有一个包含 5 列的 Google 表格,在每一列上我需要一个按钮(带有文本 1,2,3,4,5).

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.

有可能吗?

推荐答案

您可以插入看起来像按钮的图像.然后将脚本附加到图像.

You can insert an image that looks like a button. Then attach a script to the image.

  • 插入菜单
  • 图片

您可以插入任何图像.可以在电子表格中编辑图像

You can insert any image. The image can be edited in the spreadsheet

按钮的图像

为图像指定函数名称:

这篇关于将按钮添加到 Google 表格并在单击时将值设置为单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆