The following code is activating a range in columns G to I from row 4. The ending row is depending on the based on the length of data in column B.
function seleziona() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
SpreadsheetApp.setActiveSheet(ss.getSheetByName('Sheet1'));
var sheetActive = SpreadsheetApp.getActiveSpreadsheet();
var sheetActive = SpreadsheetApp.getActiveSheet();
var Avals = sheetActive.getRange("B4:B").getValues();
var Alast = Avals.filter(String).length;
sheetActive.getRange(4, 7, Alast, 3).activate();
}
I was wandering if there is a way to have a multiple selection (e.g. with getRangeList)that is taking the selection of the above code + the following range: getRange(358, 7, 8, 3)