title: Excel instances not closing after closing Excel file from DataGridView?
body: <p>I have a <code>DataGridView</code> that can open Excel files. Once I close the Excel file, the instance is still open in the Windows Task Manager processes. If I open up another Excel file from the <code>DataGridView</code>, another instance opens again and so forth. Is there any way to close the instance when the Excel file is closed? If I close the form that my <code>DataGridView</code> is in, all Excel instances are closed.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>Public Sub openExcel()
      'my code.... blah blah blah....
  
      'open excel
      Dim xlsApp As Excel.Application
      Dim xlsWB As Excel.Workbook
      xlsApp = New Excel.Application
      xlsApp.Visible = True
      xlsWB = xlsApp.Workbooks.Open(c:\myExcelFile.xlsm")
  End Sub
  </code></pre>