function runsies() {
importRange(
//Nordics
"1Xrhx03ub1uXdeFsS0mFZa2zi5uZL-qcuQDbe9oIULQU",
"DATADUMP: LE!A2:I",
"1GY-FjVa1XFNpKiR7wx3tCtGUMC2FRbLTORj-wI3iBK8",
"Nordics - LE!A1"
);
importRange(
//UK
"13Y0NOJie1gYWXanQhtkSnTNsx4vt_bcqfUIXj0ePnac",
"DATADUMP: LE!A2:I",
"1GY-FjVa1XFNpKiR7wx3tCtGUMC2FRbLTORj-wI3iBK8",
"UK - LE!A1"
);
};
function importRange(sourceID, sourceRange, destinationID, destinationRangeStart){
// Gather Source range values
const sourceSS = SpreadsheetApp.openById(sourceID);
const sourceRng = sourceSS.getRange(sourceRange);
const sourceVals = sourceRng.getValues();
// Get Destiation sheet and cell location.
const destinationSS = SpreadsheetApp.openById(destinationID);
const destStartRange = destinationSS.getRange(destinationRangeStart);
const destSheet = destStartRange.getSheet();
// Clear previous data.
destSheet.clear();
// Get the full data range to paste from start range.
const destRange = destSheet.getRange(
destStartRange.getRow(),//Start Row
destStartRange.getColumn(),//Start Column
sourceVals.length,//Row Depth
sourceVals[0].length //Column Width
);
// Paste in the values
destRange.setValues(sourceVals);
SpreadsheetApp.flush();
};