I have a simple script that gets values into an array and when I setvalues, it adds rows to my document.
I getvalues starting at row 6115 thru 6154, and when I setvalues to the same range, it adds 6000+ rows to the document and throws an error because the google sheet now has too many cells. The simple script below is taken from a larger function, but even the simplest script below does not work.
Error Msg: This action would increase the number of cells in the workbook above the limit of 2000000 cells.
function test3() {
var ss=SpreadsheetApp.getActiveSpreadsheet();
var sheet=ss.getActiveSheet();
data = sheet.getRange(6115,88,6154,89).getValues();
sheet.getRange(6115,88,6154,89).setValues(data);
}
I appreciate any help. thanks.