title: How to read excel cell values using javascript
body: <p>So, I need to be able to read an Excel sheet and access the values of cells. So far I have just created a small demo in an attempt to test code that I have seen elsewhere, but so far I've had no luck. Here's the demo:</p>
  
  <pre><code> function readFile(){ 
                                  var excel=new ActiveXObject("Excel.Application");
                      var excel_file = excel.Workbooks.Open("C:\\temp\\mod9.csv");
                      var excel_sheet = excel_file.Worksheets("mod9");
                      var data = excel_sheet.Cells(1,1).Value;
                      alert(data);
                                      return data
                  }
  </code></pre>
  
  <p>Really, with this demo I was just trying to see if I could pull a single value, but whenever I try to run this, it stops at the very first line of the function. It says "ActiveXObject is not defined." If you have another suggested way to read the file, then I would be happy to read that as well. Any help would be appreciated.</p>