title: Javascript Excel OpenFile
body: <p>I have this code:</p>
  
  <pre><code>&lt;html&gt;
    &lt;script type="text/javascript"&gt;
      function test() {
        var Excel = new ActiveXObject("Excel.Application");
        Excel.Workbook.Open("teste.xlsx");
      }
    &lt;/script&gt;
  
    &lt;body&gt;
  
      &lt;form name="form1"&gt;
        &lt;input type=button onClick="test();" value="Open File"&gt;
        &lt;br&gt;&lt;br&gt;
      &lt;/form&gt;
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>So the main problem is I keep getting this error: </p>
  
  <pre><code>On line 7 , Unable to get value of property Open
  URL file:///C:/users/admin/desktop/test.hta
  </code></pre>