ColorScheme.Colors method (PowerPoint)

Returns an RGBColor object that represents a single color in a color scheme.

Syntax

expression.Colors (SchemeColor)

expression A variable that represents a ColorScheme object.

Parameters

Name Required/Optional Data type Description
SchemeColor Required PpColorSchemeIndex The individual color in the specified color scheme.

Return value

RGBColor

Example

This example sets the title color for slides one and three in the active presentation.

Set mySlides = ActivePresentation.Slides.Range(Array(1, 3))

mySlides.ColorScheme.Colors(ppTitle).RGB = RGB(0, 255, 0)

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.