Adds a "Tools" menu to the spreadsheet that runs your own functions.
function onOpen() {
SpreadsheetApp.getUi()
.createMenu('Tools')
.addItem('Weekly summary now', 'sendWeeklySummary')
.addItem('Remove duplicate rows', 'removeDuplicates')
.addToUi();
}Undo: Delete the function; the menu disappears on the next open.
Reference: Apps Script documentation.
Facts on this page checked December 4, 2026 (Pacific) against the linked official sources.