Custom Menu - 1 Function
Click to copy
function onOpen() {
var ui = SpreadsheetApp.getUi();
ui.createMenu('Custom Menu')
.addItem('Automate', 'automation')
.addToUi();
}
3 snippets you can copy right now.
Browsing as a guest. These 3 are free to copy — log in to unlock all 448.
function onOpen() {
var ui = SpreadsheetApp.getUi();
ui.createMenu('Custom Menu')
.addItem('Automate', 'automation')
.addToUi();
}
function onOpen() {
var ui = SpreadsheetApp.getUi()
ui.createMenu('Custom Menu')
.addItem('First item', 'menuItem1')
.addItem('Second item', 'menuItem2')
.addToUi()
}
function onOpen() {
var ui = SpreadsheetApp.getUi()
ui.createMenu('Custom Menu')
.addItem('User Readable Name', 'functionName')
.addToUi()
}
Same format: full file, copy button.