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

Function onOpen

Formatting.js:1–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1function onOpen() {
2 // Add a custom menu to the spreadsheet.
3 SpreadsheetApp.getUi()
4 .createMenu('Formatting')
5 .addSubMenu(SpreadsheetApp.getUi().createMenu('Apply Style')
6 .addItem('Company Style', 'applyCompanyStyle')
7 .addItem('McDonalds Style', 'applyMcDonaldsStyle')
8 .addItem('Coca-Cola Style', 'applyCocaColaStyle')
9 .addItem('Remove Formatting', 'removeFormatting'))
10 .addToUi();
11}
12
13 function applyCompanyStyle() {
14 // Get the active spreadsheet and sheet

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected