Microsoft KB Archive/170949

= XL7: Page Fault When Deleting Auto_Close After Changing =

PSS ID Number: 170949

Article Last Modified on 10/23/2000

-

The information in this article applies to:


 * Microsoft Excel for Windows 95 7.0

-



This article was previously published under Q170949





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 professionals 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: kbbug kberrmsg kbProgramming kbusage KB170949

Technology: kbExcel95 kbExcel95Search kbExcelSearch kbExcelWinSearch

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.