tourgis2000
New Member
- Joined
- Sep 3, 2008
- Messages
- 48
Hi,
I am using Jon Peltier's code to refresh a dynamic chart range as follows:
The problem is that I have a secondary axis with a dynamic range that I also need to refresh and I can't find a way to reference it through the seriescollection function. It is not as simple as identifying it as seriescollection(x) by using the macro recorder, because the range on the primary axis is a dynamic range and so I won't know the number. Can anyone help?
Thanks in advance,
Martin
I am using Jon Peltier's code to refresh a dynamic chart range as follows:
Code:
Sub UpdateChartSourceData()
With ActiveSheet
.ChartObjects(1).Chart.SetSourceData _
Source:=.Range("ChtSourceData"), _
PlotBy:=xlColumns
End With
End Sub
Thanks in advance,
Martin