Google Apps Script

3 snippets you can copy right now.

Browsing as a guest. These 3 are free to copy — log in to unlock all 448.

Custom Menu - 1 Function

Click to copy
function onOpen() {
  var ui = SpreadsheetApp.getUi();
  ui.createMenu('Custom Menu')
      .addItem('Automate', 'automation')
      .addToUi();
}

Custom Menu - 2 functions

Click to copy
function onOpen() {
  var ui = SpreadsheetApp.getUi()
  ui.createMenu('Custom Menu')
      .addItem('First item', 'menuItem1')
      .addItem('Second item', 'menuItem2')
      .addToUi()
}

Custom Menu - 1 function

Click to copy
function onOpen() {
  var ui = SpreadsheetApp.getUi()
  ui.createMenu('Custom Menu')
      .addItem('User Readable Name', 'functionName')
      .addToUi()
}

445 more with membership

Same format: full file, copy button.

  • Use Random Quote API in Google Sheets
  • Use Random Quote API in Google Sheets
  • Ultimate Prompt Writer and Prompt Rater
  • Uncheck Every Checkbox in Google Sheets