title: Running Excel macro from windows service
body: <p>This is related to <a href="https://stackoverflow.com/questions/15054332/how-to-run-an-excel-macro-from-a-windows-service">this question</a>. Note that the accepted answer does not answer the question posed, so I'm creating a new question.</p>
  
  <p>I have a windows service that will open an Excel document, which has a macro that should run automatically when it is opened. I do this by creating a new <code>Process</code>. When I run my service, I have it log on as another account to do this (through <code>Properties -&gt; Log On -&gt; Log on as [some other account]</code> in the services manager). </p>
  
  <p>The problem is that the macro does not run. When I check the active processes via Task Manager, I see that <code>EXCEL.EXE</code> is there, running under the <code>other account</code> name.</p>
  
  <p>So I believe the service is properly opening the document in Excel, but the macro is not running. However in the other thread, people seemed to say that it was not possible to open MS Office documents through a service? I am trying to understand what's going on when my service attempts to open the document, and how I can get the macro to run. Any input or clarification would be appreciated.</p>