I am trying to move non-adjacent rows to specific rows on the same sheet but I can't get it to work. I have the following code so far:
function moveRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rowSpec = sheet.getRangeList(["B11","B15"]);
sheet.moveRows("B2","B12")
}
This however returns the following error:
Exception: The parameters (String,String) don't match the method signature for SpreadsheetApp.Sheet.moveRows. moveRows @ Code.gs:4
From my searches, I haven't found a way to move multiple non-adjacent rows, so my first question is: Is it possible?
If not, is there a workaround and if so, how?
This is the sheet I am working on: https://docs.google.com/spreadsheets/d/1BKOxgZmAIoAzpmrF5NBChjFMXheyUEkf7SXVXCJs3zw/edit?usp=sharing