title: quitting excel with C# (while using excel automation)
body: <p>I'm using c# to read/write data to an excel spreadsheet.</p>
  
  <p>I'm using these three statements to open my excel file</p>
  
  <pre><code> Excel.Application excelapp = new Excel.Application();
   Excel._Worksheet worksheet = (Excel._Worksheet)workbook.ActiveSheet;
   Excel._Worksheet worksheet = (Excel._Worksheet)workbook.ActiveSheet;
  </code></pre>
  
  <p>And these two lines to close/save the sheet.</p>
  
  <pre><code>  workbook.Save();
    workbook.Close();
  </code></pre>
  
  <p>The problem I'm having is that the EXCEL process is still active. (I used task manager to check.) And after reading/ writing data to the worksheet I have like 20 EXCEL processes active. </p>
  
  <p>If anyone can show me a technique of ending the excelapp proc right after i close the workbook that would be great.</p>
  
  <p>Many thanks, Aaron.</p>