Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Run-time Error -2147023169 (800706bf)

257 views
Skip to first unread message

Edward D. Winston

unread,
Feb 26, 1999, 3:00:00 AM2/26/99
to
Hi,

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

Tom Schiff

unread,
Feb 26, 1999, 3:00:00 AM2/26/99
to
I am not an OLE automation expert but in the dark recesses of my mind I seem
to remember this one.
I would try the following.

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.


C. Malone

unread,
Feb 26, 1999, 3:00:00 AM2/26/99
to
You might find it easier to use CreateObject or GetObject

CM

Tom Schiff <tom_s...@email.msn.com> wrote in message
news:OOzNihXY#GA....@uppssnewspub04.moswest.msn.net...

Edward D. Winston

unread,
Feb 28, 1999, 3:00:00 AM2/28/99
to C. Malone
Thanks C.

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

Vadim Levinzon

unread,
Mar 3, 1999, 3:00:00 AM3/3/99
to
How about installing the latest Service Packs for Office and VB from
www.microsoft.com

see you

Edward D. Winston

unread,
Mar 3, 1999, 3:00:00 AM3/3/99
to Vadim Levinzon
That was my thought too Vadim. I'm only on SR1. I'll try to finish the
download of SR2 today and let the group know what happens.

EDW c/o JMM

0 new messages