Article ID: 172114
Article Last Modified on 8/17/2005
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: XL5 XL7 XL97 XL
Keywords: kbprogramming kbprb kbdtacode KB172114