I am developing a macro in VB.net and I am opening Excel to get a database. When I call a code to close it, it became invisible but in the task Manager, there is an Excel process for every time I opened it. How can I properly close it?
I use this code :
appXL = New excel.Application
wbXL = appXL.ActiveWorkbook
appXL.workbooks.open("XXX")
appXL.Application.DisplayAlerts = False
wbXL.Close()
appXL.Quit()
Thanks in advance, Zeylo