I adapted a Google Apps Script from @Diego's Stack Overflow answer. The script moves the contents of a range to a new location.
The only modifications I made to the script was to remove the line source.clear()
in order to have the script perform a copy instead of a cut, and I changed the sheet references to match my own.
The problem is that when the source range includes multiple rows, only the first row is copied to the destination.
How can I get the script to include all the rows?
function moveValuesOnly() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var source = ss.getRange("RUNSHEET!H4:AC20");
var destSheet = ss.getSheetByName("RUNSHEET");
destSheet.appendRow(source.getValues()[0]);
}