MCPcopy Create free account
hub / github.com/analyticswithadam/App_Script / onOpen

Function onOpen

GettingandSettingData.js:1–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1function onOpen() {
2 var ui = SpreadsheetApp.getUi();
3 ui.createMenu('Custom Functions')
4 .addItem('Copy Sheet to New Sheet', 'copyToSheet')
5 .addItem('Copy Selection to New Sheet', 'copySelectionToSheet')
6 .addItem('Copy Sheet from Other Sheet', 'copyFromOther')
7 .addToUi();
8}
9
10function copySelectionToSheet(){
11 const ss = SpreadsheetApp.getActiveSpreadsheet();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected