I have a Google apps script that creates a new tab, which is executed through a shape that I added; more specifically a bevel. Now I would like for that same macro to create a new bevel shape on that new tab and assign it a new script.
How do I create a shape via GAS, and then assign a new script to it?
https://developers.google.com/apps-script/reference/spreadsheet/sheet
There are functions for inserting images. However there is no way to attach a script to them except for manually.
There are also no functions for getting, deleting, or otherwise manipulating an image once it is [art of the sheet. This prevents copying the an existing image. You would need to source your image from a URL or by providing a blob (sort of like file contents) probably pulled from a file in drive.
You may want to consider using a custom menu:
https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet-app#getUi()
I am new to GAS, and still need to build my familiarity with functionality. However, I did find a fix to this by inserting a checkbox to use as a "button". Don't know if this helps?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.