M
Mike
All,
I am attemping to use VBA to update the source data of a chart. Here is my
code:
Sheets("Summary_Chart").Select
ActiveSheet.ChartObjects(1).Activate
ActiveChart.SetSourceData Source:=Sheets("Summary").Range("A1:A22,F1:F22"),
PlotBy:=xlColumns
The chart is on a worksheet named Summary_Chart and the data is on a
worksheet called Summary. There is only one chart on the Summary_Chart
sheet.
When I try to run this code I get the following error on the second line of
code above:
Run-time error '1004': Unable to get the ChartObjects property of the Chart
class.
Please help!
Thanks,
Mike
I am attemping to use VBA to update the source data of a chart. Here is my
code:
Sheets("Summary_Chart").Select
ActiveSheet.ChartObjects(1).Activate
ActiveChart.SetSourceData Source:=Sheets("Summary").Range("A1:A22,F1:F22"),
PlotBy:=xlColumns
The chart is on a worksheet named Summary_Chart and the data is on a
worksheet called Summary. There is only one chart on the Summary_Chart
sheet.
When I try to run this code I get the following error on the second line of
code above:
Run-time error '1004': Unable to get the ChartObjects property of the Chart
class.
Please help!
Thanks,
Mike