View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Mircea Pleteriu Mircea Pleteriu is offline
external usenet poster
 
Posts: 28
Default EXCEL.EXE is not killed

It works.
Thanks a lot Nick.

"NickHK" wrote in message
...
Mircea,
Is this the answer ?
http://support.microsoft.com/default...b;en-us;317109

NickHK

"Mircea Pleteriu" wrote in message
...
Hi,

Within my code I create an instance of the Excel.Application object.
That's the code.

// Create instance of Excel application

this.excelApp = new Excel.ApplicationClass();

This code runs the EXCEL.EXE process (which open the MS Excel

framework).

When the framework gets closed (by Exit or by pressing the X button) the
EXCEL.EXE process is not killed. That is, the MS Excel framework is

closed
but the process is still running.

I observed that the EXCEL process gets closed only when the application
which runs the code above is closed.

If my application runs the code above many times I will get lots of
EXCEL.EXE processes running EVEN IF ALL of the frameworks are closed.

Do you have any idea how to get the EXCEL.EXE process killed when the
framework is closed?