Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google apps script 如何处理脚本中的多个(非矩形)选定单元格?_Google Apps Script_Google Sheets - Fatal编程技术网

Google apps script 如何处理脚本中的多个(非矩形)选定单元格?

Google apps script 如何处理脚本中的多个(非矩形)选定单元格?,google-apps-script,google-sheets,Google Apps Script,Google Sheets,我有一个谷歌电子表格,并绑定了一个脚本来处理选定的单元格(从菜单中调用) 当我调用getActiveRange方法时,我只得到最后一个选择区域,而不是所有(使用ctrl键)选定的单元格 例如,我选择单元格A1,点击ctrl按钮,选择C3并释放按钮。选择A1和C3,但激活范围仅为C3 是否可以处理所有选定的单元格 在这个例子中,A1和C3应该被处理。我认为目前这是不可能的。你可以在这个问题上扮演主角。 让我们希望这个特性能很快实现

我有一个谷歌电子表格,并绑定了一个脚本来处理选定的单元格(从菜单中调用)

当我调用getActiveRange方法时,我只得到最后一个选择区域,而不是所有(使用ctrl键)选定的单元格

例如,我选择单元格A1,点击ctrl按钮,选择C3并释放按钮。选择A1和C3,但激活范围仅为C3

是否可以处理所有选定的单元格


在这个例子中,A1和C3应该被处理。

我认为目前这是不可能的。你可以在这个问题上扮演主角。 让我们希望这个特性能很快实现