Excel 2010
Windows 7
Hello I have macro that I am trying to create that will do the following.
1. Select the chart on the tab. (there is only 1 chart named Chart 1)
2. Right click the chart and select "Select Data".
3. Remove series collect 1. (Which is removing the oldest month from the chart.)
4. Then add "Sept" series to the chart.
5. Have it use values of $AC$26:$AC$28 on the active sheet. (I cant figure out how to tell it to use that range on the active sheet).
But when I run the macro it does absolutely nothing!
Windows 7
Hello I have macro that I am trying to create that will do the following.
1. Select the chart on the tab. (there is only 1 chart named Chart 1)
2. Right click the chart and select "Select Data".
3. Remove series collect 1. (Which is removing the oldest month from the chart.)
4. Then add "Sept" series to the chart.
5. Have it use values of $AC$26:$AC$28 on the active sheet. (I cant figure out how to tell it to use that range on the active sheet).
But when I run the macro it does absolutely nothing!
Code:
Sub AddSeptFinal()'
' AddSeptFinal Macro
'
'
ActiveSheet.Select
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection(1).Delete
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(6).Name = "=""Sep"""
ActiveChart.SeriesCollection(6).Values = "=CGO!$AC$26:$AC$28"
Range("AM32").Select
End Sub