Skip to content

Latest commit

 

History

History
53 lines (29 loc) · 1.89 KB

PowerPoint.ColorSchemes.Add.md

File metadata and controls

53 lines (29 loc) · 1.89 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ColorSchemes.Add method (PowerPoint)
vbapp10.chm536004
vbapp10.chm536004
PowerPoint.ColorSchemes.Add
1e727a60-0e19-e033-2dc2-c00083263e06
06/08/2017
medium

ColorSchemes.Add method (PowerPoint)

Adds a color scheme to the collection of available schemes. Returns a ColorScheme object that represents the added color scheme.

Syntax

expression.Add (Scheme)

expression A variable that represents a ColorSchemes object.

Parameters

Name Required/Optional Data type Description
Scheme Optional ColorScheme The color scheme to add. Can be a ColorScheme object from any slide or master or an item in the ColorSchemes collection from any open presentation. If you omit this parameter, the first ColorScheme object (the first standard color scheme) in the specified presentation's ColorSchemes collection is used.

Return value

ColorScheme

Remarks

The new color scheme is based on the colors used on the specified slide or master or on the colors in the specified color scheme from an open presentation.

The ColorSchemes collection can contain up to 16 color schemes. If you need to add another color scheme and the ColorSchemes collection is already full, use the Delete method to remove an existing color scheme.

Note that although Microsoft PowerPoint automatically checks whether a color scheme is a duplicate when a user attempts to add it by using the user interface, PowerPoint doesn't check when you attempt to add a color scheme programmatically. Your procedure must do its own checking to avoid adding redundant color schemes.

See also

ColorSchemes Object

[!includeSupport and feedback]