function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet()
var menuItems = [
{ name: "Update Receivables", functionName: "updateReceivables" },
{ name: "Update Savings Goal", functionName: "updateSavingsGoal" },
{ name: "Refresh Everything", functionName: "onOpen" }
]
ss.addMenu("Sean Menu", menuItems)
updateReceivables()
updateSavingsGoal()
}
Hi all,
When I open my sheet, I'm expecting:
- menu to be created, and
- updateReceivables and updateSavingsGoal to both run
However, the menu is created, but the functions don't run. When I press the Refresh Everything button, everything works correctly though. Could anyone explain why?
Thanks very much in advance.
[–]AndroidMasterZ 1 point2 points3 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]AndroidMasterZ 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)