I need to reset checkboxes to FALSE (Unchecked) and also delete all notes from defined sheets.
Also need a script that deletes all notes from a Google sheet (all sheets)
How about this modification?
i
is used at both for (var i = 0; i < tabs.length; i++) {
and for (var i = 0; i < values.length; i++) {
.
i
of for (var i = 0; i < tabs.length; i++) {
is not increased every 1.It does not loop through the pages and delete the notes.
.for (var k = 0; k < tabs.length; k++) {var sheet=ss.getSheetByName(tabs[k]);
.==
is used for comparing the boolean.
it sometimes replaces a "1" with a FALSE
.===
.Please modify as follows.
From:for (var i = 0; i < tabs.length; i++) {
var sheet = ss.getSheetByName(tabs[i]);
To:
for (var k = 0; k < tabs.length; k++) {
var sheet = ss.getSheetByName(tabs[k]);
And
From:if (values[i][j] == true) {
To:
if (values[i][j] === true) {
If I misunderstood your question, please tell me. I would like to modify it.