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

Last reviewed: March 10, 1997
Article ID: Q145570
7.00 7.00a WINDOWS kbusage kberrmsg

The information in this article applies to:

  • Microsoft Office for Windows 95, versions 7.0, 7.0a, 7.0b
  • Microsoft Excel for Windows 95, versions 7.0, 7.0a
  • Microsoft PowerPoint for Windows 95, version 7.0
  • Microsoft Word for Windows 95, version 7.0
  • Microsoft Windows 95

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.

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.


KBCategory: kbusage kberrmsg
KBSubcategory: offwin xlvbainfo

Additional reference words: 7.00 MS095.DLL


Keywords : offwin xlvbainfo kberrmsg kbusage
Version : 7.00 7.00a
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 10, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.