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
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