Invalid Page Fault Running VB Macro in Hidden Word SessionLast reviewed: February 5, 1998Article ID: Q135082 |
7.00
WINDOWS
kbprg kbcodeThe information in this article applies to:
SYMPTOMSIf Word is not running and you run a Visual Basic for Applications macro that attempts to call Word, 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. Winword caused an invalid page fault in module Winword.exe at 0137:50013cc2. STATUSMicrosoft has confirmed this to be a problem in Word for Windows 95 version 7.0. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. This problem does not occur in Microsoft Word 97.
WORKAROUNDStart Word before you run the Visual Basic for Applications macro.
MORE INFORMATIONThe following macro demonstrates the problem. When you run the following macro in Microsoft Excel
Sub test() Dim w as object Set w=CreateObject("Word.Basic") w.FileNew w.FilePrintPreview End Subyou will receive an error message if Word is closed.
|
KBCategory: kbprg kbcode
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |