Skip to content

Files

Latest commit

 

History

History
62 lines (34 loc) · 2.02 KB

PowerPoint.ColorSchemes.md

File metadata and controls

62 lines (34 loc) · 2.02 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ColorSchemes object (PowerPoint)
vbapp10.chm536000
vbapp10.chm536000
PowerPoint.ColorSchemes
9b062448-88f5-b38d-2c76-330c691c9d72
06/08/2017
medium

ColorSchemes object (PowerPoint)

A collection of all the ColorScheme objects in the specified presentation. Each ColorScheme object represents a color scheme, which is a set of colors that are used together on a slide.

Example

Use the ColorSchemesproperty to return the ColorSchemes collection. Use ColorSchemes (index), where index is the color scheme index number, to return a single ColorScheme object. The following example deletes color scheme two from the active presentation.

ActivePresentation.ColorSchemes(2).Delete

Use the Addmethod to create a new color scheme and add it to the ColorSchemes collection. The following example adds a color scheme to the active presentation and sets the title color and background color for the color scheme (because no argument was used with the Add method, the added color scheme is initially identical to the first standard color scheme in the presentation).

With ActivePresentation.ColorSchemes.Add

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

    .Colors(ppBackground).RGB = RGB(128, 128, 0)

End With

Set the ColorSchemeproperty of a Slide, SlideRange, or Master object to return the color scheme for one slide, a set of slides, or a master, respectively. The following example sets the color scheme for all the slides in the active presentation to the third color scheme in the presentation.

With ActivePresentation

    .Slides.Range.ColorScheme = .ColorSchemes(3)

End With

See also

PowerPoint Object Model Reference

[!includeSupport and feedback]