Here's my code
function saveRange(){
var ss=SpreadsheetApp.getActiveSpreadsheet();
var sheet=ss.getSheetByName('Sample_tab_1');
var range=sheet.getRange('A8:AE47').getValues();
sheet.getRange(sheet.getLastRow()+1, 1, range.length, range[0].length).setValues(range);
}
But let's say I want to run this on not just Sample_tab_1 but also 2, 3, 4, etc. (not all of the tabs in the entire sheet though, just the ones I specify.)