I've written a utility which acitvates an instance of Word through the
windows API ShellExecute in VB5. The utility manipulates document
objects and then is terminated through the windows API PostMessage. If I
attempt to reactivat word throught the application the following
run-time error is generated unless I trap it:
Run-time Error -2147023169 (800706bf)
Automation Error
I can't seem to prevent it from occuring no matter what I try. The only
way to clear it up is exit completely out of the project. Any
suggestions would be appreciated.
EDW c/o JMM
1. Check the task bar to see that Word actually closed.
2. Press Ctrl-Alt-Del before calling Word and and again after and check what
processes are running. See if anyting is being left behind.
3. Try running your app with word already opened.
CM
Tom Schiff <tom_s...@email.msn.com> wrote in message
news:OOzNihXY#GA....@uppssnewspub04.moswest.msn.net...
I have tried that option as well. But when I programatically terminate
Word and then try to reactivate it programatically it still occasionally
throws the same run-time error. Thanks for the response though.
EDW c/o JMM
EDW c/o JMM