[英]Can I create dynamic menu items using a form popup?
Would it be possible to use a popup form to handle parameters for a custom menu item in a spreadsheet?是否可以使用弹出表单来处理电子表格中自定义菜单项的参数? I'm not necessarily asking for someone to write the script.
我不一定要求某人编写脚本。 I just don't want to try only to discover I've been wasting my time.
我只是不想尝试只是发现我一直在浪费时间。
In my spreadsheet, I want to be able to save a sheet to a new file/spreadsheet (that part is done) and then access/load that saved sheet again later through a custom menu command.在我的电子表格中,我希望能够将工作表保存到新文件/电子表格(该部分已完成),然后稍后通过自定义菜单命令再次访问/加载该保存的工作表。 The issue I'm running into is that I want to be able to call the same function every time, but be able to specify a parameter (which sheet to access).
我遇到的问题是我希望每次都能调用相同的函数,但能够指定一个参数(要访问哪个工作表)。 My thought is that the form would act like an alert with multiple choices populated by the array of available sheets.
我的想法是该表单就像一个警报,其中包含由可用工作表数组填充的多个选项。
Or is there a simpler way to offer a multiple choice without going through a series of YES/NO
alerts?或者有没有更简单的方法来提供多项选择,而无需经过一系列
YES/NO
警报?
Yes.是的。 You can use dialogs.
您可以使用对话框。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.