Colors Method

Microsoft PowerPoint Visual Basic

Colors Method

       

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

expression.Colors(SchemeColor)

expression   Required. An expression that returns a ColorScheme object.

SchemeColor  Required PpColorSchemeIndex. The individual color in the specified color scheme.

PpColorSchemeIndex can be one of these PpColorSchemeIndex constants.
ppAccent1
ppAccent2
ppAccent3
ppBackground
ppFill
ppForeground
ppNotSchemeColor
ppSchemeColorMixed
ppShadow
ppTitle

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)