I have the following in my code:
xlapp = CType(CreateObject("Excel.Application"), Excel.Application)
xlbook1 = CType(xlapp.Workbooks.Open("C:\Temp.xls"), Excel.Workbook)
xlapp.Quit()
xlapp = Nothing
However while I am looking at the task manager when the code hits xlapp.quit() it does nothing and then when it steps to xlapp=nothing the debugger shows it xlapp = nothing but the excel instance is still in the task manager.
Is there another way to close excel so the excel doesn't stay running?
To go where no programmer has gone before.
xlapp = CType(CreateObject("Excel.Application"), Excel.Application)
xlbook1 = CType(xlapp.Workbooks.Open("C:\Temp.xls"), Excel.Workbook)
xlapp.Quit()
xlapp = Nothing
However while I am looking at the task manager when the code hits xlapp.quit() it does nothing and then when it steps to xlapp=nothing the debugger shows it xlapp = nothing but the excel instance is still in the task manager.
Is there another way to close excel so the excel doesn't stay running?
To go where no programmer has gone before.