I set up some code to copy and paste a certain value from the formula using form submissions as a trigger. It worked! But now it's giving me a "too many simultaneous invocations" error with reference to line 3.
It has not been called in excess of 20 times a day (as I know is the set limit) so I'm imagining I did something off with my code... (I'm NOT a JS guy.)
function pasteValue(){
var sheet =
SpreadsheetApp.getActiveSpreadsheet().getSheetByName('INVOICES')
var lastRow = sheet.getDataRange().getValues();
lastRow.forEach(function (row,index) {
if (row[1] == "") {
lastRow.length = index;
}
});
var newRange = sheet.getRange(lastRow.length,13);
newRange.copyTo(newRange, {contentsOnly: true})
sheet.setActiveRange(newRange);
}
SpreadsheetApp.flush()
– TheMaster