I\'m working on a small code to read some Excel files. I\'ve linked the COM library for Excel 15, and am using the following code to read Excel files:
excelInsta
As per the MSDN documentation here, use the Quit() method to close your instance, as such:
Quit()
var excelInstance = new Microsoft.Office.Interop.Excel.Application() // Do stuff excelInstance.Quit();