OFF97: Error Using Help Method with Microsoft Word 97 (161805)
The information in this article applies to:
- Microsoft Word 97 for Windows
- Microsoft Excel 97 for Windows
- Microsoft Access 97
- Microsoft PowerPoint 97 for Windows
This article was previously published under Q161805 SYMPTOMS
When you run a Visual Basic for Applications macro in any of the programs
listed at the beginning of this article, you may receive the following
error message:
This program has performed an illegal operation and will be shut down.
If the problem persists, contact the program vendor.
If you click Details, you receive the following error message:
WINWORD caused an invalid page fault in module MSO97.DLL at
0137:307be411.
CAUSE
This problem will occur if the following conditions are true:
- Your Visual Basic macro uses OLE Automation to communicate with
Microsoft Word 97.
-and-
- In the macro, you use the Help method to display help in Microsoft
Word 97.
-and-
- After displaying Help in Microsoft Word 97, you use the Quit method to
close the instance of Microsoft Word 97.
WORKAROUND
To prevent this problem from occurring, use the Assistant object and the
Help method together rather than the Help method by itself to display Help
in Microsoft Word 97. For example, use the following
but don't use the following:
WordApp.Help helptype:=wdHelp
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. We are researching this problem
and will post new information here in the Microsoft Knowledge Base as it
becomes available.
Modification Type: | Major | Last Reviewed: | 6/18/2005 |
---|
Keywords: | kbcode kberrmsg kbProgramming KB161805 |
---|
|