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.

XL2002: Charts Do Not Update When Source Cells Are Updated


View products that this article applies to.

Symptoms

When you recalculate a workbook that contains user-defined functions, the cells that contain those functions are updated as expected, but charts that are dependent on those cell values may not update to reflect the new recalculated values.

↑ Back to the top


Cause

This problem may occur when Microsoft Excel 2002 recalculates a workbook. When Excel 2002 recalculates a workbook, the chart values that are based on user defined custom function cell values are not processed.

↑ Back to the top


Workaround

You can modify the custom function so that it is both volatile and includes error handling, in a manner that is similar to the following example:
Function Function_Name(function_parameter) 
Application.Volatile
On Error Goto ErrHandler 
    Function code
    Exit Function 
ErrHandler: Function_Name = CVErr(xlErrValue) 
End Function

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


Keywords: KB821644, kbprb

↑ Back to the top

Article Info
Article ID : 821644
Revision : 7
Created on : 2/5/2007
Published on : 2/5/2007
Exists online : False
Views : 209