Re: How to terminate running process pogrammatically?



Thank you. You are right. I can now terminate that process.
Additional question:
Do I need to use .Quit ?
I have noticed that
Set moExcelApp = Nothing
alone terminates that process.
Why do I need .Quit for?
Thanks,
Jack

"Bob Butler" <noway@xxxxxxxxxxx> wrote in message
news:eN0mMR7HIHA.4584@xxxxxxxxxxxxxxxxxxxxxxx
"Jack" <replyto@it> wrote in message
news:eAR70X1HIHA.284@xxxxxxxxxxxxxxxxxxxxxxx
Bob, when I've tried .Quit it did not terminate the process!
There were not spreadsheets/workbooks opened.
There was only Excel.exe process running, invoked by my app code:
Set moExcelApp = CreateObject("Excel.Application")

then I'll guarantee that your app still had references to various Excel
objects. If you've handled everything cleanly it will terminate and if it
doesn't then you've missed something. Excel is *very* picky about
terminating. Without seeing how you create and release the workbook and
work*** objects and how you manipulate cells it's hard to say what might
be going wrong.




.