View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Dreiding Dreiding is offline
external usenet poster
 
Posts: 80
Default 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