Article ID: 182242
Article Last Modified on 9/11/2002
ActiveChart.SeriesCollection.Extend Worksheets("Sheet1").Range("B5:B6")
This line of code adds the values in cells B5:B6 in Sheet1 to the chart.
Dim xExtras xExtras = Array(2, 3, 5, 7) ActiveChart.SeriesCollection.Extend xExtrasThe problem occurs because xExtras refers to an array of data points, not to a Range object.
Additional query words: XL98
Keywords: kbprogramming kbprb kbdtacode KB182242