function onOpen(e) { var ui = SpreadsheetApp.getUi(); ui.createMenu("The Menu Name") .addItem("The Menu Item 1", "theFUnctionToRun1") .addItem("The Menu Item 2", "theFUnctionToRun2") .addToUi(); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter