如何将脚本链接到图像Google脚本 [英] How to link script to an image google script

查看:97
本文介绍了如何将脚本链接到图像Google脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google脚本在电子表格中添加一行,然后在该行的单元格中插入图片.我想知道是否可以将此图像链接到脚本的功能吗?

I add with google script a row in a spreadsheet and then I insert an image in a cell of this row. I want to know if it's possible to link this image to a script's function ?

推荐答案

在图像的右上方菜单中,分配>图像>分配脚本.

Insert > image > in top right menu of image, Assign Script.

更好的做法是为出现的侧边栏附件创建菜单选项,该附件允许用户单击实际按钮而不是图像.请参见 https://developers.google.com/apps-script/guides/dialogs有关更多信息.

It's much better practice to create a menu option for a sidebar Add-on to appear that allows users to click actual buttons and not images. See https://developers.google.com/apps-script/guides/dialogs for more info.

这篇关于如何将脚本链接到图像Google脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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