Automatically create a chart
Hi YH
couldn't you fill it with something like this?
ActiveChart.SeriesCollection(1).values =
"=(sheet1!R11C7,Sheet1!R13C7,Sheet1!R18C7,Sheet1!R 20C7)"
hth
Carlo
"YH" wrote:
I am in the process of automating a chart creation and get stuck on this line:
'WS is declared as a worksheet
ActiveChart.SeriesCollection(1).values = WS.Range("G34, I34, K34, M34, O34")
I want to create a series in a chart by selecting multiple noncontinguous
cells, but
I run into errors executing this line.
Can someone point out what is wrong?
Thanks,
YH
|