ChartGroups Object (PowerPoint)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents one or more series plotted in a chart with the same format.

A ChartGroups collection is a collection of all the ChartGroup objects in the specified chart. A chart contains one or more chart groups, each chart group contains one or more series, and each series contains one or more points. For example, a single chart might contain both a line chart group, containing all the series plotted with the line chart format, and a bar chart group, containing all the series plotted with the bar chart format.

Note Note

Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

The following example displays the number of chart groups on the first chart of the active document. Use the ChartGroups method to return the ChartGroups collection.

MsgBox ActiveDocument.InlineShapes(1).Chart._


The following example adds drop lines to chart group 1 on chart sheet 1. Use ChartGroups(index), where Index is the chart group index number, to return a single ChartGroup object.


    ChartGroups(1).HasDropLines = True