OLEFormat.FollowColors property (PowerPoint)
Returns or sets the extent to which the colors in the specified object follow the slide's color scheme. Read/write.
Syntax
expression. FollowColors
expression A variable that represents a OLEFormat object.
Return value
PpFollowColors
Remarks
The specified object must be a chart created in either Graph or Microsoft Organization Chart.
The value of the FollowColors property can be one of these PpFollowColors constants.
Constant | Description |
---|---|
ppFollowColorsNone | The chart colors don't follow the slide's color scheme. |
ppFollowColorsMixed | Some of the chart colors follow the slide's color scheme. |
ppFollowColorsScheme | All the colors in the chart follow the slide's color scheme. |
ppFollowColorsTextAndBackground | Only the text and background follow the slide's color scheme. |
Example
This example specifies that the text and background of shape two on slide one in the active presentation follow the slide's color scheme. Shape two must be a chart created in either Graph or Microsoft Organization Chart.
ActivePresentation.Slides(1).Shapes(2).OLEFormat.FollowColors = ppFollowColorsTextAndBackground
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.