The information in this article applies to:
SYMPTOMSIn Microsoft Excel, when you run a macro that attempts to access a data series in a chart, you may receive any of the following error messages: Microsoft Excel 97 for Windows and Excel 98 Macintosh Edition
Microsoft Excel 5.0 or 7.0You may also receive the following error message:
CAUSE
This problem occurs when you run a macro that attempts to access a data
series that is not visible on a chart, and the chart is a line, xy
(scatter), or radar series chart.
WORKAROUNDTo work around this problem, use one of the following appropriate methods. Method 1: All Y-Values Are EmptyTo work around this problem, use the following steps to make the series visible on the chart:
Method 2: All Y-Values Are #N/ATo work around this behavior, use a formula in the y-axis value cells that returns blank data instead of an error. For example, if the #N/A is the result of the following formula:
modify the formula to the following:
This causes any errors (#N/A, #REF!, and so on) to be returned as blanks.
Data points that contain blanks for the y-axis values are displayed as
zeros on the chart, and the series is visible. The run-time error does not
appear when you access the series programmatically.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. Additional query words: 5.00a 5.00c 7.00a xl97 xl98
Keywords : kberrmsg kbprg kbdta PgmOthr KbVBA xlchart |
Last Reviewed: October 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |