Need help to read Pie Chart Series Range

D

Dreiding

Excel 2003, I have an existing Pie Chart and want to extract the Ranges
(cells) used.
My code below returns with a "Type mismatch" error.

Sub GetPieChartSeries()
Dim mySeries As Series

ActiveSheet.ChartObjects(1).Activate
Set mySeries = ActiveChart.SeriesCollection(1)

Debug.Print mySeries.XValues (errors here)
Debug.Print mySeries.Values

End Sub

Thanks,
- Pat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top