The information in this article applies to:
SUMMARY
In Microsoft Excel 98 Macintosh Edition, the Help topic for the Extend
method states that the Source argument may be either a Range object or an
array of data points. This information is incorrect; the Source argument
must be a Range object.
MORE INFORMATIONIn Microsoft Excel, you can use the Extend method to add new data points to an existing series in a chart. For example, if you create a simple column chart that contains a single series, and you want to add new data points to the series, you can use a line of code similar to the following:
This line of code adds the values in cells B5:B6 in Sheet1 to the chart.
If you specify an array of data points for the Source argument of the Extend method, you receive an error message. For example, the following sample code causes the problem:
The problem occurs because xExtras refers to an array of data points, not
to a Range object.
Additional query words: XL98
Keywords : kbprg kbdta kbdtacode xlvbahowto xlvbainfo OffVBA xlchart xlhelp |
Last Reviewed: November 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |