title: Apply to Specific Tabs within a Sheet
body: <p>I have 9 tabs within my spreadsheet, and would like to apply a sorting script to only 6 of those tabs. I can't figure out how to make that happen.</p>
  
  <pre><code>///////Auto Sort Phase Sheets
    //get sheet
    var ss = SpreadsheetApp.getActiveSpreadsheet();
    var sheet = ['Phase 1','Phase 2', 'Phase 3', 'Phase 4', 'Phase 5', 'Phase 6']; 
    //get active cell
    var editedCell = sheet.getActiveCell();
    //get range
    var range = sheet.getRange("A2:Z");
    //sort by: status, priority, estimated time
    range.sort([{column: 2, ascending: true},  {column: 1, ascending: true}, {column:3}]);
  </code></pre>
  
  <p>I get this error: </p>
  
  <blockquote>
    <p>TypeError: Cannot find function getActiveCell in object Phase 1,Phase 2,Phase 3,Phase 4,Phase 5,Phase 6</p>
  </blockquote>
  
  <p>When I remove 'getActiveCell' I get this error: TypeError: Cannot find function getRange in object Phase 1,Phase 2,Phase 3,Phase 4,Phase 5,Phase 6. </p>
  
  <p>When I remove 'getRange' the script just does nothing.</p>