Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hidden Excel In taskmanager Excel.exe Vs Microsoft Excel...

Status
Not open for further replies.

lameid

Programmer
Jan 31, 2001
4,207
US
So this took me longer to spot than I'd like to admit...

When Vba goes bad and a hidden excel application object is orphaned, the instance is still running.

I am used to ending the process (not application) Excel.exe in Windows 7 via task manager. Now I have Windows 10 and it says "Microsoft Excel..." which is only part of the name and all I am going to bother to remember as that is enough to find it.

Technically this is not a vba question but what is it different? Or how would I find out what an orphaned application would be in task manager when automating?

 
Outside excel and without any visible excel - you can try [tt]Set xlApp = GetObject(, "Excel.Application")[/tt], you will get error or reference to hidden instance. You can quit it or make visible.
In word vba word [tt]Application[/tt] has [tt]Tasks[/tt] property, that allows to examine and manipulate tasks.

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top