title: Google Apps Script: Script function not found: FormatCWR
body: <p>I am trying to build a function that formats certain columns of a tab (a sheet within the main sheet) that is titled "Responses - DO NOT EDIT." However, every time I run the script from the menu, I receive the error message: "Script function not found: FormatCWR."<br>
  Here's the code, that I've frankensteined...</p>
  
  <pre><code>function onOpen() {
    var ss = SpreadsheetApp.getActiveSpreadsheet();
    var entries = [{name:"FormatCWR", functionName:"FormatCWR"}];
    ss.addMenu("Scripts", entries);
    FormatCRW()
  }
  function FormatCRW() {
    var ss = SpreadsheetApp.getActiveSpreadsheet();
    var sheetCWR = ss.getSheetByName("Responses - DO NOT EDIT");
    var data = sheetCWR.getDataRange().getValues();
    var newData = new Array();
    for(i in data){
      sheetCWR.getRange('H2:H').setNumberFormat("mm/dd/yyyy");
      sheetCWR.getRange('J2:J').setNumberFormat('$0.00');
      sheetCWR.getRange('K2:K').setNumberFormat('$0.00');
      sheetCWR.getRange('R2:R').setNumberFormat('$0.00');
      sheetCWR.getRange('BD2:BD').setNumberFormat('$0.00');
      sheetCWR.getRange('BG2:BG').setNumberFormat('$0.00');
      sheetCWR.getRange('BJ2:BJ').setNumberFormat('$0.00');
      sheetCWR.getRange('S2:S').setNumberFormat('[h]:[m]:[s]');
      sheetCWR.getRange('T2:T').setNumberFormat('[h]:[m]:[s]');
      sheetCWR.getRange('BO2:BO').setNumberFormat('[h]:[m]:[s]');
      break;
    }
  };
  </code></pre>