Microsoft KB Archive/145570

= OFF95: Page Fault in Mso95.dll When You Run MS Excel Macro =

Article ID: 145570

Article Last Modified on 8/17/2005

-

APPLIES TO


 * Microsoft Office 95 Standard Edition
 * Microsoft Office 95a
 * Microsoft Office 95b
 * Microsoft Excel 95 Standard Edition
 * Microsoft Excel 95a
 * Microsoft PowerPoint 95 Standard Edition
 * Microsoft Word 95 Standard Edition
 * Microsoft Windows 95

-



This article was previously published under Q145570



SYMPTOMS
When you run a macro in Microsoft Excel version 7.0, 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, a message similar to the following appears:

EXCEL caused an invalid page fault in module MSO95.DLL at 0137:5066e949.



CAUSE
This problem occurs when all of the following conditions are met:
 * You run Microsoft Excel for Windows 95 on a computer that is running Microsoft Windows 95.

-and-


 * You run a macro that uses a property that requires you to establish a reference to the Microsoft Office 95 Object Library.

-and-


 * You fail to establish a reference to the Microsoft Office 95 Object Library by clicking References on the Tools menu on the module sheet.

-and-


 * You run the macro more than once.

This problem occurs when you use Microsoft Excel version 7.0 and Microsoft Windows 95. This problem does not occur when you use Microsoft Excel version 7.0 and Microsoft Windows NT 3.51.

This behavior may also occur when you use a macro in any Office version 7.0 program that requires you to establish a reference to the Microsoft Office 95 Object Library.



RESOLUTION
To resolve this problem, enable the Microsoft Office 95 Object Library before you run the macro. To do this, use the following steps in Microsoft Excel:
 * 1) In the module sheet, click References on the Tools menu.
 * 2) In the References dialog box, select the "Microsoft Office 95 Object Library" check box.
 * 3) Click OK.

NOTE: The reference to the Microsoft Office 95 Object Library is disabled by default in Microsoft Excel version 7.0.



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.



MORE INFORMATION
This problem occurs when you use the following properties in a macro:

BuiltinDocumentProperties

CustomDocumentProperties

DocumentProperties

You can use the BuiltinDocumentProperties property to return the collection of built-in document properties, and the CustomDocumentProperties property to return the collection of custom document properties.

