I am working with this script:
/** * Automatically sorts the 1st column (not the header row)
Ascending. */ function onEdit(event){ var sheet =
event.source.getActiveSheet(); var editedCell =
sheet.getActiveCell();
var columnToSortBy = 3; var tableRange = "A2:T99"; // What to
sort.
if(editedCell.getColumn() == columnToSortBy){
var range = sheet.getRange(tableRange);
ran
ge.sort( { column : columnToSortBy, ascending: true } ); }
I need it to only run on Sheet 2, Sheet 3, Sheet 4, and not all sheet in the workbook. I tried doing several variation of getsheets
that didn't work.