I'm using this VBscript to run a Macro (contained in autodru.dot) in a Word-object I create with VBS.
However, after Termination of the Macro/Script there is still a Winword.exe Process in my Task Manager. How do I destroy the object thoroughly?
THANKS!
David
However, after Termination of the Macro/Script there is still a Winword.exe Process in my Task Manager. How do I destroy the object thoroughly?
THANKS!
David
Code:
Set objWord = CreateObject("Word.Application")
Set objDoc = objWord.Documents.Open("autodru.dot")
objWord.Visible = False
objWord.Run "LWPrint.Main"
Set objdoc = Nothing
Set objword = Nothing