title: Google Script Function not found
body: <p>Here is my code.  Ir runs fine from Debug and from Run in the code ui, but when running from the press of a custom menu button I get this error:</p>
  <blockquote>
  <p>Script function not found: <code>function menuItem1() { var ui = SpreadsheetApp.getUi(); ui.alert(&quot;Hello There&quot;); }</code></p>
  </blockquote>
  <p>Here is my code:</p>
  <pre><code>function menuItem1(){
   var ui = SpreadsheetApp.getUi();
     ui.alert('Hello There');
  }
  </code></pre>
  <p>That is it!</p>
  <p>I have other sheets that have tons of code that do all kinds of craziness with spreadsheets and and even form creation.</p>
  <p>Cant figure out why I am getting this. It doesn't matter code I put into this function either. I get a listing of the entire code in an error detail form presented as a dialog over the spreadsheet.</p>
  <p>Anyone?</p>