title: Google Sheets-Script function increment could not be found
body: <p>I am able to run the following function from the script editor.  However, when I try to assign it to a button in my google sheet, I get the error code:</p>
  
  <blockquote>
    <p>"Script function increment could not be found." </p>
  </blockquote>
  
  <p>Any ideas!? I have tried refreshing the page, copying and pasting the function name for accuracy, etc. </p>
  
  <pre><code>function increment(){
  
  var cell = SpreadsheetApp.getActiveSheet().getRange("B7");
  
  var cellValue = cell.getValue();
  cell.setValue(cellValue + 1)
  
  }
  </code></pre>