I have a script that will copy and send a range of data to another sheet. I want to add another part to the script, that will perform the same function but append the data to the next blank row.
function saveToRecords() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var archive = ss.getSheetByName("Archive");
var source = ss.getRange('Work!A10:R');
var lastRow = archive.getLastRow();
source.copyTo(ss.getRange('Archive!A1:R1'), {contentsOnly: true});
}
I've been following this question for guidance, but when I attempt to implement the solution, I keep receiving a mismatched range error.