M
matelot
I use the following code to assign a range in my macro. I checked with other
webite and the syntax seems to be correct.
Activesheet.chartobjects("Chart 1").activate
set rng = activesheet.range(cells(1,1), cells(x, y))
Activechart.seriescollection(1).values = rng
x and y are variables I set earlier in the code.
The error message I get is "run time error 1004. Unable to set the values
property of the series class
Thanks for the help.
webite and the syntax seems to be correct.
Activesheet.chartobjects("Chart 1").activate
set rng = activesheet.range(cells(1,1), cells(x, y))
Activechart.seriescollection(1).values = rng
x and y are variables I set earlier in the code.
The error message I get is "run time error 1004. Unable to set the values
property of the series class
Thanks for the help.