Created
September 14, 2020 07:47
-
-
Save franklinokech/0f06496db8b4434c606c3c929502c3ad to your computer and use it in GitHub Desktop.
A Google App Script to clear content of a Google spreadsheet
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
// 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