Skip to content

Instantly share code, notes, and snippets.

@kurtkaiser
Created February 9, 2019 18:12
Show Gist options
  • Save kurtkaiser/36a8d56c3674aba4416c4849b3a057a5 to your computer and use it in GitHub Desktop.
Save kurtkaiser/36a8d56c3674aba4416c4849b3a057a5 to your computer and use it in GitHub Desktop.
Google Apps Script can be intimidating at first. On of the early functions I needed to use was alerts. This is a simple program to show how to use an alert in Apps Script.
// Kurt Kaiser
// kurtkaiser.us
// All rights reserved, 2019
var ui = SpreadsheetApp.getUi();
function onOpen() {
ui.createMenu('Alert System')
.addItem('Alert Me!', 'showAlert')
.addToUi();
}
function showAlert(){
ui.alert('I am alerting you!');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment