ijpbs
08-19-2021, 03:43 AM
Hi Team,
Kindly share a script to reset a specific cell value to zero '0'.
Currently am using below script, but its not working - Its getting reset in 5 secs itself
function myFunction() {
var sheet = SpreadsheetApp.getActive().getSheetByName('sheet1'); sheet.getRange('B2').setValue(0);
}
function createTimeDrivenTriggers() {
ScriptApp.newTrigger('myFunction')
.timeBased()
.everyMinutes(5)
.create();
}
Kindly share a script to reset a specific cell value to zero '0'.
Currently am using below script, but its not working - Its getting reset in 5 secs itself
function myFunction() {
var sheet = SpreadsheetApp.getActive().getSheetByName('sheet1'); sheet.getRange('B2').setValue(0);
}
function createTimeDrivenTriggers() {
ScriptApp.newTrigger('myFunction')
.timeBased()
.everyMinutes(5)
.create();
}