I'm trying to create a script that will automatically move a range of cells down 1 row. The range that gets moved needs to be dependent on where in the sheet a new row was added. I've got the moving the range part figured out with:
function moveRange() {
}
var sheet = SpreadsheetApp.getActiveSheet()
sheet.getRange("A1:E").moveTo(sheet.getRange("A2"));
I just need sheet.getrange() to be a set column but a variable row number and moveTo(sheet.getRange() to be that same column and the row right below it instead of static values. Any ideas?