I need to delete a bunch of rows for wich I have their respective CURRENT row indexes in an array.
However if I do a sheet.deleteRow(rowIndex), The row indexes of the rest of the rows change.
I can't find a way to reference the rows themselves. Only the row indexes.
How could I go about doing such a task?
I do not have Data binding of any kind.
Thanks in advance.
// this does not work. I need a reference to the row itself
var
rowsToDelete = [2,6,53];
for
(
var
x=0;x<rowsToDelete.length;x++){
sheet.deleteRow(x);
}