This isn't so much a COM issue as a cleanup issue.
My app creates and populate an Excel file. The user then wants to view the output and return to my code to do something else that the program does.
If he closes Excel, using standard Excel processing before he returns to my code, then I'll go on with whatever he wants to do. If he does not close Excel, then I want my code to do it so I have a clean connection and clean up the memory usage and just do housekeeping.
He can close Excel while my tool is still running and it geneeataes a trappable error, but I'd prefer not to use error trapping for the condition if I don't have to.
I need a way to tell if Excel is still running before I try to close it and reset the object variables to Nothing.
Thanks