ChartGroup.VaryByCategories Property (Word)
True if Microsoft Word assigns a different color or pattern to each data marker. Read/write Boolean.
Version Information
Version Added: Word 2007
Syntax
expression .VaryByCategories
expression A variable that represents a ChartGroup object.
Remarks
The chart must contain only one series.
Example
The following example assigns a different color or pattern to each data marker in chart group one. You should run the example on a 2-D line chart that has data markers on a series.
With ActiveDocument.InlineShapes(1)
If .HasChart Then
.Chart.ChartGroups(1).VaryByCategories = True
End If
End With