title: How to write in cells in GoogleSpreadSheet using app Script?
body: <p>and sorry for the stupid question.</p>
  
  <p>I know how to program on VBA for Excel, but I´m having a hard time doing the simplest stuff in Google Spreadsheet and I can´t find any good tutorials on-line.</p>
  
  <p>My question is regarding cells. In VBA to write in a cells I would do:</p>
  
  <pre><code>cells(1,1) = 2 //that would write the number 2 in the first row of the first column  
  </code></pre>
  
  <p>In VBA I can also assign a cell to a variable, like:</p>
  
  <pre><code>dim something as long
  something = cells(1,1)
  </code></pre>
  
  <p>How can I apply the same principles in google SpreadSheet?</p>
  
  <p>Thank you very much!</p>
  
  <p>I´ve tried what you guys suggested. And now I have a follow up question.</p>
  
  <p>I`m trying to modify the cells in a specific range. I´ve tried this code:</p>
  
  <pre><code>var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
  var board = sheet.getRange(2,2,9,9);
  board[0][0].setValue(2);
  </code></pre>
  
  <p>But apparently I can´t use array notation. I´m not sure if .setValeu or .getRange are the problem. But is there a way I can use array notation to chance a cell?</p>
  
  <p>Thanks Again! </p>