标签: google-apps-script
每当我尝试在谷歌应用程序中运行以下脚本时。
function onOpen() { SpreadsheetApp.getUi().createMenu(SKA).addItem("refresh", "deniminator_heading_rebuild") }
我收到以下错误消息。
"SpreadsheetApp.getUi() can only be called from a script bound to the new version of Google Sheets"
答案 0 :(得分:1)
我猜您的电子表格是使用旧版Google表格创建的;)
https://support.google.com/docs/answer/3544847?hl=en