Hi Neil,
I thought we were clear that the wait loop is what is causing your problem. You've got to get rid of it.
>Oops... A little bit more investigation reveals that your solution is not really fixing the problem for me. You see, when I automate WORD and go into the wait loop, a test on thisform.Gotfocus() will always return true. Any other thoughts? I wonder if WORD has a property that tells me it is in a modal state.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05