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

ID: Q145570


The information in this article applies to:


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:

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.


REFERENCES

For more information about built-in document properties, click the Index tab in Microsoft Excel Help, type the following text

object library
and then double-click Office 95 Library for Document Properties to go to the "BuiltinDocumentProperties Property" topic.

Additional query words: MS095.DLL


Keywords          : xlvbainfo offwin 
Version           : WINDOWS:7.0,7.0a,7.0b,95
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: May 5, 1999