shadow12345
Well-known Member
- Joined
- May 10, 2004
- Messages
- 1,238
Hi,
I have the below code which does exactly what I want but I have to run it loads of times.
What I would like to do is run the below code on:
For Every sheet in the workbook. (not all have charts)
Every Chart on those sheets (max 2 per sheet)
And every series in those charts
And create one master list of all of the Series name and Values.
Can anyone help?
I have the below code which does exactly what I want but I have to run it loads of times.
What I would like to do is run the below code on:
For Every sheet in the workbook. (not all have charts)
Every Chart on those sheets (max 2 per sheet)
And every series in those charts
And create one master list of all of the Series name and Values.
Can anyone help?
Code:
Sub chartcheck()
Dim txt As String, Caption As String
Dim ChtSeries As New ChartSeries
With ChtSeries
'specify Chart object and series number
.Chart = ActiveChart
.ChartSeries = 1
'This gives the name of the series
Range("s2").Value = .SeriesName.Address
Range("t2").Value = .Values.Address
End With
End Sub