Closing hidden instances of winword.exe

R

Ron

I'm running XP Pro and Office Pro 2003.

Is there a way to close these hidden instances? No document is opened so you can't distinguish them in the Tasks collection.

Alternatively is there a way to close the processes (image names) in the Task Manager via VBA? The Tasks collection doesn't work.
 
J

Jonathan West

Is this a hidden instance that you have opened as a result of your code?


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup


Ron said:
I'm running XP Pro and Office Pro 2003.

Is there a way to close these hidden instances? No document is opened so
you can't distinguish them in the Tasks collection.
Alternatively is there a way to close the processes (image names) in the
Task Manager via VBA? The Tasks collection doesn't work.
 
R

Ron

I've had instances where it was.

I also have instances where a user opens Word, closes the new blank default document, minimizes Word and then I need to close it.
 
J

Jonathan West

Ron said:
I've had instances where it was.

I also have instances where a user opens Word, closes the new blank
default document, minimizes Word and then I need to close it.

Go to www.mvps.org/vb/, select the Samples link on the left, and scroll down
until you come to the TaskList.zip sample. Drop the clss module into your
VB6 or VBA application, and you should be set to go.
 
J

Jezebel

You can get a reference to the hidden instances using GetObject. Make sure
it's not your current instance, then close it. Repeat until no instances are
returned.



Ron said:
I'm running XP Pro and Office Pro 2003.

Is there a way to close these hidden instances? No document is opened so
you can't distinguish them in the Tasks collection.
Alternatively is there a way to close the processes (image names) in the
Task Manager via VBA? The Tasks collection doesn't work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top