【发布时间】:2019-08-15 14:50:07
【问题描述】:
我正在使用 Google 脚本编辑器,并且基于 Google 表格创建了一个表单。我已经根据从工作表中选择的当前单元格为表单上的某些问题指定了帮助文本。然后,我将表单结果的目的地设置到不同的 Google 表格中。我想根据当前工作表中的当前单元格指定选项卡的名称。那可能吗?这是我现在拥有的:
var DestinationSheet = SpreadsheetApp.openByUrl('URL here');
form.setDestination(FormApp.DestinationType.SPREADSHEET, DestinationSheet.getId(););
但是我如何指定 TAB 名称,因为现在它只是给它一个通用名称,每次都带有一个新数字,即“Form Responses 5”。
我想我可以以某种方式包含这个:
DestinationSheet.insertSheet("currentcell");
但这只是插入了另一个名为“currentcell”的工作表。
【问题讨论】:
标签: google-apps-script google-sheets google-forms