Skip to content

Instantly share code, notes, and snippets.

@rascode
Created September 12, 2013 20:20
Show Gist options
  • Save rascode/6543198 to your computer and use it in GitHub Desktop.
Save rascode/6543198 to your computer and use it in GitHub Desktop.
Create a Google Apps Script Menu
function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var menuEntries = [];
menuEntries.push({name: "Function Label", functionName: "doGet"});
menuEntries.push(null); // line separator
menuEntries.push({name: "Function Label", functionName: "doGet"});
ss.addMenu("Github", menuEntries);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment