BUG: Starting Word Manually Uses Same Instance as Automation (188546)
The information in this article applies to:
- Microsoft Visual Basic for Applications 5.0
- Microsoft Office XP Developer
- Microsoft Office 2000 Developer
- Microsoft Word 2002
- Microsoft Word 2000
- Microsoft Word 97 for Windows
This article was previously published under Q188546 SYMPTOMS
You run a Visual Basic application that uses the CreateObject function to
start a hidden instance of Microsoft Word. The application is idle, but it
still maintains a reference to Word. Next, you manually start an instance
of Word. A separate instance of Word should open, but the same instance
that was created by the Visual Basic application is made active instead. If
you close Word and continue to work in the Visual Basic application, one of the following errors occurs when the application tries to use Word objects
because Word is no longer running:
Run-time error '462':
The remote server machine does not exist or is unavailable
Run-time error '-2147023174 (800706ba)':
Automation error
This automation error translates to "The RPC server is unavailable."
RESOLUTION
Use one of the following to work around this problem:
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 3/9/2005 |
---|
Keywords: | kbAutomation kbbug kbpending KB188546 |
---|
|