title: Cannot find method setActiveSheet(string)
body: <p>In Google Sheets, which runs on JavaScript, I'm getting this message, "Cannot find method setActiveSheet(string). (line 4, file "Code")", I don't know why... I'm pretty new to coding, so bear with me. </p>
  
  <pre><code>function onOpen() {
    var email = Session.getActiveUser().getEmail();
    var sheet = email.slice(0,-11);
    SpreadsheetApp.setActiveSheet(sheet)
  }
  </code></pre>