I have a very small and simple VB application developed on Visual Studio whose role is to:
- Open an Excel Workbook (which includes some calculations formulae),
- Feed into the INPUT cells the values of the parameters,
- Retrieve from a pre-defined cell the value of the result.
Excel is run without human interface (i.e. Excel_Application.Visible = False
).
Upon completion of the calculation (and retrieval of the result) the following commands are executed:
:
Excel_Workbook.Close(False)
Excel_Workbook = Nothing
Excel_Application.Quit()
Excel_Application = Nothing
:
Even after these statements are executed, when looking at the Task Manager an Excel process is shown. This process is removed when the application is asked to end (e.g. click at the "X" button of the window).
It should be noted that, if I turn on the graphical interface, the icon from the taskbar does disappear after Excel_Application.Quit()
but the background process still remains.
I need the ability to leave no background process without closing the application.
I search the web and found a number of suggestions, none of them work.