Created
February 9, 2019 18:12
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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