Microsoft KB Archive/173272

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 11:06, 21 July 2020 by X010 (talk | contribs) (Text replacement - """ to """)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Article ID: 173272

Article Last Modified on 11/23/2006



APPLIES TO

  • Microsoft Excel 97 Standard Edition



This article was previously published under Q173272

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.


WORKAROUND

Microsoft provides programming examples 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. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site:

For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:

You can use the Value property of the range instead of using the Copy method followed by the PasteSpecial method. For example, you can use the following code to remove the formulas from the selected range of cells:

   Selection.Value = Selection.Value
                

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem no longer occurs in Microsoft Excel 2000.

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 hang hangs hanging hung lock up locks locking locked lockup freeze freezes freezing froze frozen stop stopping stopped won't respond waiting crash crashes crashing crashed quit quitting quits fail fails failing failed break Excel exe

Keywords: kbbug kberrmsg KB173272