Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You receive a "Not enough memory" error message when you open a workbook with a chart


View products that this article applies to.

Symptoms

When you open a workbook in Microsoft Excel, the following problems may occur:
  • You receive the following error message:
    Not enough memory.
    -and-
  • In the active chart, text is missing from both the legend and the chart title. Also, some or all of the chart series labels contain the text "0."

↑ Back to the top


Cause

These problems occur if all of the following conditions are true:
  • When you open the workbook, a chart sheet is the active sheet.

    -and-
  • The active chart sheet refers to cells in a worksheet that contain formulas that refer to one or more user-defined functions.

    -and-
  • One of the user-defined functions uses the Volatile method by using the following line of code in the function:
    Application.Volatile
    					

↑ Back to the top


Workaround

To work around these problems, use either of the following methods:
  • Before you save the workbook, click a worksheet or chart sheet that does not refer to user-defined functions. When you do this, you ensure that the active sheet does not refer to a user-defined function.

    -or-
  • Remove the following code from any user-defined functions that are referenced by the chart sheet:
    Application.Volatile
    					
If you cannot change the active sheet or modify the user-defined functions, you can temporarily correct the chart by following these steps:
  1. Switch to the worksheet that is referenced by the chart sheet.
  2. Press CTRL+ALT+F9.
This forces the entire worksheet to be recalculated. When you switch to the chart sheet, the title, legend, and series labels appear correctly. Note that when you close and reopen the workbook, the problems may occur again.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

A volatile function must be recalculated whenever calculation occurs in any cells on the worksheet. A nonvolatile function is recalculated only when the input variables change.

↑ Back to the top


Keywords: KB213683, kbprogramming, kbpending, kberrmsg, kbdtacode, kbopenfile, kbchart, kbprb

↑ Back to the top

Article Info
Article ID : 213683
Revision : 6
Created on : 10/11/2006
Published on : 10/11/2006
Exists online : False
Views : 235