Class ChartGroups (PowerPoint VBA)
The class ChartGroups represents one or more series plotted in a chart with the same format. To use a ChartGroups class variable it first needs to be instantiated, for example
Dim cgs as ChartGroups
Set cgs = ActiveWindow.RangeFromPoint.Chart.ChartGroups()
Count
Returns the number of objects in the collection.
Dim lngCount As Long
lngCount = ActiveWindow.RangeFromPoint.Chart.ChartGroups.Count
Item
Returns a single ChartGroup object from the collection.
Item (Index)
Index: The index number for the object.
Dim chrg As ChartGroup
Set chrg = ActivePresentation.Slides(1).Shapes(1).Chart.ChartGroups(Index:=1)