I have searched the forum for similar questions but can’t seem to find anything that would help me. I’m new to VBA so apologies in advance for any obvious mistakes. Here is the Macro I recorded and I have over 25 graphs I need to make the same change as I made to this one. However, when I activate the next sheet the macro comes up with an error stating "Run time err. The item with the specified name wasn't found". Please help any advice will be appreciated. Thanks!!!
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o>Sub Macro1()
'
' Macro1 Macro
'
' Keyboard Shortcut: Ctrl+Shift+K
'
Sheets("Aged Corr Chart").Select
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection(1).Select
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(4).Name = "='Chart data'!$M$2"
ActiveChart.SeriesCollection(4).Values = "='Chart data'!$M$3:$M$80"
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(5).Name = "='Chart data'!$N$2"
ActiveChart.SeriesCollection(5).Values = "='Chart data'!$N$3:$N$80"
End Sub
</o>
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o>Sub Macro1()
'
' Macro1 Macro
'
' Keyboard Shortcut: Ctrl+Shift+K
'
Sheets("Aged Corr Chart").Select
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection(1).Select
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(4).Name = "='Chart data'!$M$2"
ActiveChart.SeriesCollection(4).Values = "='Chart data'!$M$3:$M$80"
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(5).Name = "='Chart data'!$N$2"
ActiveChart.SeriesCollection(5).Values = "='Chart data'!$N$3:$N$80"
End Sub
</o>