title: How to call multi-parameter Excel-ActiveX function
body: <p>I already posted a question about writing a range at once from a Javascript array to an excel sheet through Internet Explorer (using ActiveX objects), because although this can be done cell by cell, this cell-by-cell method is unacceptably slow, so the range has to be written at once.</p>
  
  <p>Unfortunately, though brilliant this site may be, nobody has given me the answer to my problem (sigh!).</p>
  
  <p>So I tried something else: From the aspx sheet, on client side, I write my csv stack (the one I desperately want to write to an instantly opening excel file) as a CSV file on the local client disk. This works all right, and if I open the CSV file through Excel, I can see it immediately and correctly parsed. Good...</p>
  
  <p>But the fact is that I want the user to get this CSV file immediately in an Excel window as soon as he has clicked the Excel icon on my apsx page, instead of having to swap to his file Explorer and borely navigate to fetch the CSV file by himself.</p>
  
  <p>So, I intend to use the "Open" method of the Excel ActiveX object, with parameters precising it has to be csv-parsed with a semicolon: So, I use the following instructions:</p>
  
  <pre><code>&lt;script type='text/javascript'&gt;
     applic = new ActiveXObject("Excel.Application");
     classeur = applic.Workbooks.Open(nomFichier,"","","4");
  &lt;/script&gt;
  </code></pre>
  
  <p>And now, another problem occurs (will I have to hate Microsoft in the end?): It seems that with Javascript, I can't use multiparameters call on then ActiveX functions, because I also tried with "OpenText" and had the same problem:</p>
  
  <p>The instruction:</p>
  
  <pre><code>classeur = applic.Workbooks.Open(nomFichier)
  </code></pre>
  
  <p>works all right, but as soon as I add at least a second parameter, like this:</p>
  
  <pre><code>classeur = applic.Workbooks.Open(nomFichier,"")
  </code></pre>
  
  <p>My navigator fails!</p>
  
  <p>So I go back to my first problem, still not able to parse my csv stack in an Excel range at once...</p>
  
  <p>So here's my question:
   <strong>Is there a special syntax that I don't know, that allows to pass several parameters from Javascript to an Activex function?</strong></p>
  
  <p>I hope I'll be more lucky this time with you all clever guys out there...</p>
  
  <p>Thank you.</p>