XL97: Calculating Worksheet Causes Crash After Running Module

Last reviewed: January 7, 1998
Article ID: Q173272
The information in this article applies to:
  • Microsoft Excel 97 for Windows

SYMPTOMS

When you calculate your worksheet, error messages similar to the following may appear:

Microsoft Windows 95

   This program has performed an illegal operation and will be
   shut down. If the problem persists, contact the program vendor.

If you click Details, you may receive an error message similar to the following:

   Excel caused an invalid page fault in module Excel.exe at
   0137:3022d421.

Microsoft Windows NT

   Dr. Watson for Windows NT
   An application error has occurred and an application error log is
   being generated.

   Excel.exe

   Exception: access violation (0xc0000005), Address 0x3022d41.

CAUSE

This problem may occur when the following conditions are true:

  • Your workbook is set to manual calculation mode.

        -and-
    
  • You run Microsoft Visual Basic for Applications code that performs a Copy operation on a range of cells that contain a formula entered as an array.

        -and-
    
  • The Visual Basic code performs a Paste Special operation with the copied cells, pasting only the values into the worksheet.

        -and-
    
  • You calculate your worksheet.

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.

REFERENCES

For more information about Calculating Formulas, click the Index tab in Microsoft Excel Help, type the following text

   calculating formulas, changing method

and then double-click the selected text to go to the "Change the way Microsoft Excel calculates formulas" topic.


Additional query words: XL97
Keywords : xlformula xlgpf xlminfo kberrmsg
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbbug


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