I'm charting in Excel using VBA.
If I use something like:
Then it plots.
But if I use something like:
Then I get the method 'cells' of object '_global' failed
error message.
I want to use the Range(Cells... syntax so the chart will reflect changes in the numbers of columns, etc.
Is the 2nd syntax no longer valid? (Excel 2000).
If I use something like:
Code:
ActiveChart.SetSourceData Source:=Worksheets("Sheet2").Range("A1:D10"), PlotBy:=xlColumns
Then it plots.
But if I use something like:
Code:
ActiveChart.SetSourceData Source:=Worksheets("Sheet2").Range(Cells(1, 1), Cells(10, 4)), PlotBy:=xlColumns
Then I get the method 'cells' of object '_global' failed
error message.
I want to use the Range(Cells... syntax so the chart will reflect changes in the numbers of columns, etc.
Is the 2nd syntax no longer valid? (Excel 2000).