ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Need help to read Pie Chart Series Range (https://www.excelbanter.com/excel-programming/440236-need-help-read-pie-chart-series-range.html)

Dreiding

Need help to read Pie Chart Series Range
 
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


All times are GMT +1. The time now is 09:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com