Terminating a Word process from Excel VBA

Joined
Jan 2, 2009
Messages
3
Reaction score
0
Hello All



I need to stop a Word process using an Excel macro.



Excel will create an instance of Word, use it and then close word. This works the majority of the time. When it does not work the Word process is still running in the background and needs to be stopped using task manager.



What I’m after is a way to terminate the instance of word created by excel.



I have found how to terminate all word instances but cannot workout how to close the one opened by the macro.



The terminate method will close a specific process ID but I cannot find a way of identifying the process ID of the instance of word created.



Does anyone have any idea how to Kill a specific Word process?



Any help or ideas will be greatly appreciated as this issue has about defeated my knowledge….



Thank you kindly

Christian
 

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