Skip to content

Instantly share code, notes, and snippets.

View TechandEco's full-sized avatar

Sustainability and Tech TechandEco

View GitHub Profile
@TechandEco
TechandEco / Code.gs in script editor
Last active January 7, 2020 17:25
GSuite-samples/macro-analytics/Code.js
/**
* Installs a trigger in the Spreadsheet to run upon the Sheet being opened.
* To learn more about triggers read:
* https://developers.google.com/apps-script/guides/triggers
*/
function onOpen() {
var ui = SpreadsheetApp.getUi();
ui.createMenu('Analytics Helper')
.addItem('Setup data', 'setupData')
.addItem('Create summary', 'createSummary')