Table of contents
Collapse the table of content
Expand the table of content

ChartGroups Object (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

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 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

See also


PowerPoint Object Model Reference

© 2018 Microsoft