title: Open Google Spreadsheet via Google Apps Script
body: <p>Is it possible to open a Google Spreadsheet via Google Apps script?<br />
  I'm trying to create a way to link to a certain cell in a spreadsheet, but I can't manage to open a sheet from a script (deployed as a web app).<br />
  I want to open the spreadsheet and then set the active sheet and range (I know how to do the latter, when the spreadsheet is opened). </p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>EDIT</strong><br />
  Here's my current code:</p>
  
  <pre><code>function doGet(e){
    var ss = SpreadsheetApp.openById("[id]");
    SpreadsheetApp.setActiveSpreadsheet(ss);
    var sheet = ss.getSheetByName("Kunder");
    var row = Number(e.parameter.row); 
    var col = Number(e.parameter.col); 
    var range = sheet.getRange(row, col);
  
    //OPEN THE SPREADSHEET HERE
  
    SpreadsheetApp.setActiveSheet(sheet);
    SpreadsheetApp.setActiveRange(range);
  }
  </code></pre>