XL7: Page Fault When Deleting Auto_Close After Changing

Last reviewed: July 14, 1997
Article ID: Q170949

------------------------------------------------------------------ -------- The information in this article applies to:

  • Microsoft Excel for Windows 95, version 7.0
------------------------------------------------------------------ --------

SYMPTOMS

After you run a macro and edit a three-dimensional pie chart, Excel for Windows 95 may stop responding, a general protection fault may occur, and the following error message may appear:

   This program has performed an illegal operation
   and will be shut down.

If you click Details, a message similar to the following appears:

   Excel cause an invalid page fault in module
   Mso97.dll at 0137:50603f25.

When you click OK, Excel closes.

CAUSE

This problem occurs when the following conditions are true:

  • You create a 3-D pie chart in Microsoft Excel 7.0.

        -and-
    
  • You create a macro that contains a line of code that adds the Auto_Close defined name that refers to another macro.

    -and-

  • The macro to which Auto_Close refers contains a line of code that deletes Auto_Close.

    -and-

  • You run the macro that deletes the Auto_Close defined name.

When the Auto_Close macro runs, the following error message appears:

   The 3-D View Dialog code leaves internal variables set incorrectly.
   When the workbook is closed, Excel 95 attempts to access an
   uninitialized variable.

RESOLUTION

Microsoft provides examples of Visual Basic for Applications procedures for illustration only, without warranty either expressed or implied, including, but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The Visual Basic procedures in this article are provided 'as is' and Microsoft does not guarantee that they can be used in all situations. While Microsoft support engineers can help explain the functionality of a particular macro, they will not modify these examples to provide added functionality, nor will they help you construct macros to meet your specific needs. If you have limited programming experience, you may want to consult one of the Microsoft Solution Providers. Solution Providers offer a wide range of fee-based services, including creating custom macros. For more information about Microsoft Solution Providers, call Microsoft Customer Information Service at (800) 426-9400.

To resolve this problem, add the following code to the beginning of the macro that is referenced by Auto_Close:

   Application.MacroOptions Macro:="DeleteAutoClose", _
   Description:="Delete Auto Close"

STATUS

Microsoft has confirmed this to be a problem in Microsoft Excel for Windows 95, version 7.0. This problem was corrected in Microsoft Excel 97 for Windows.


Keywords : kberrmsg kbprg kbusage xlchart kbbuglist
Version : WINDOWS:7.0
Platform : WINNT
Hardware : Alpha PPC x86
Issue type : kbbug
Resolution Type : kbpatch


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: July 14, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.