title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
ChartGroup.VaryByCategories property (Excel) |
vbaxl10.chm568093 |
|
|
9ae94a48-abc7-b692-7376-f4cb780a4063 |
04/20/2019 |
medium |
True if Microsoft Excel assigns a different color or pattern to each data marker. The chart must contain only one series. Read/write Boolean.
expression.VaryByCategories
expression A variable that represents a ChartGroup object.
This example assigns a different color or pattern to each data marker in chart group one. The example should be run on a 2D line chart that has data markers on a series.
Charts("Chart1").ChartGroups(1).VaryByCategories = True
[!includeSupport and feedback]