>Hi George,
>
>As I've explained, I didn't write the code, I inherited it. I've modified it to run a different version of Word in a different directory.
>The routine code follows:
< snip >
Hi Paige,
I couldn't get it to work either. However, with the Windows Script Host, I did manage to close Word with the following:
oShell = CREATEOBJECT('WScript.Shell')
oShell.AppActivate("Microsoft Word")
WAIT WINDOW "" TIMEOUT .1
oShell.SendKeys("%{F4}")
This sends the Alt-F4 keypress combination to Word (even if minimized) and shuts it down. Does this help?
George
Ubi caritas et amor, deus ibi est