title: Google Apps Script - Spreadsheet run script onEdit?
body: <p>I have a script that I use in my spreadsheet. It is at cell B2 and it takes an argument like so <code>=myfunction(A2:A12)</code>. Internally the function gets info from a large range of cells.</p>
  
  <p>Nothing seems to work. I tried adding it to<br>
  Scripts > Resources > Current Project Triggers > On edit<br>
  Scripts > Resources > Current Project Triggers > On open</p>
  
  <p>How can I have this function update the result with every document edit?</p>