ankita.sethi
Board Regular
- Joined
- Apr 27, 2011
- Messages
- 58
Hi,
I am trying to change a chart data source to some values of variable that have been calculated in VBA itself, but I am failing to do so
The variable names that I have calculated are a, b, c, and ot
I tried doing this:
'change the chart numbers
Sheets("Sheet1").ChartObjects("Chart 3").Activate
ActiveChart.SeriesCollection(1).Values = (a,b,c)
ActiveChart.SeriesCollection(1).Name = "=""ser1"""
However, there is a syntax error in this macro where the text is red.
Can anyone please help me with this?
Regards,
Ankita
I am trying to change a chart data source to some values of variable that have been calculated in VBA itself, but I am failing to do so
The variable names that I have calculated are a, b, c, and ot
I tried doing this:
'change the chart numbers
Sheets("Sheet1").ChartObjects("Chart 3").Activate
ActiveChart.SeriesCollection(1).Values = (a,b,c)
ActiveChart.SeriesCollection(1).Name = "=""ser1"""
However, there is a syntax error in this macro where the text is red.
Can anyone please help me with this?
Regards,
Ankita