KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there are a way I can add arguments to a function that will be added to the Script Center Menu on a Google Spreadsheet document? This is the normal onOpen method. function onOpen() { var sheet = SpreadsheetApp.getActiveSpreadsheet(); var entries = [{ name : "Summary", functionName : "myOnOpen" } ]; sheet.addMenu("Script Center Menu", entries); }; I was wondering if there is something similar to the following. function onOpen() { var sheet = SpreadsheetApp.getActiveSpreadsheet(); var entries = [{ name : "Summary", functionName : "myOnOpen", arguments : [value: "Some value"] } ]; sheet.addMenu("Script Center Menu", entries); }; Thanks!
Tags (comma-separated)
Save Edits
Cancel