The code below works, but the excel.exe process still runs even though I quit Excel. I am using Office 2013 and referencing the correct import for Office.Interop.Excel
Am i missing something
Sub demo()
Dim xls As New Excel.Application
Dim book As Excel.Workbook
Dim oSheet As Excel.Worksheet
xls.Workbooks.Open("Test.xlsx")
book = xls.ActiveWorkbook
oSheet = book.ActiveSheet
oSheet.Cells(1, 2).Value = "testing"
book.Save()
book.Close()
xls.Workbooks.Close()
xls.Quit()
System.Runtime.InteropServices.Marshal.ReleaseComObject(oSheet)
System.Runtime.InteropServices.Marshal.ReleaseComObject(book)
System.Runtime.InteropServices.Marshal.ReleaseComObject(xls)
oSheet = Nothing
book = Nothing
xls = Nothing
GC.Collect()
End Sub