Skip to content

Instantly share code, notes, and snippets.

@franklinokech
Created September 14, 2020 07:47
Show Gist options
  • Save franklinokech/0f06496db8b4434c606c3c929502c3ad to your computer and use it in GitHub Desktop.
Save franklinokech/0f06496db8b4434c606c3c929502c3ad to your computer and use it in GitHub Desktop.
A Google App Script to clear content of a Google spreadsheet
// funtion to clear the mpesa upload for new entries
function clearRange() {
// get spreasheet details
var sheet = SpreadsheetApp.getActive().getSheetByName('Mpesa upload summary');
// get the cell range and call clear method
sheet.getRange('B2:E').clearContent();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment