Class ColorSchemes (PowerPoint VBA)
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. To use a ColorSchemes class variable it first needs to be instantiated, for example
Dim css as ColorSchemes
Set css = ActivePresentation.ColorSchemes
Add
Adds a color scheme to the collection of available schemes. Returns a ColorScheme object that represents the added color scheme.
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.
Add (Scheme)
Scheme: 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.
Dim cse As ColorScheme
Set cse = ActivePresentation.ColorSchemes.Add()
Count
Returns the number of objects in the specified collection.
Dim lngCount As Long
lngCount = ActivePresentation.ColorSchemes.Count
Item
Returns a single ColorScheme object from the specified ColorSchemes collection.
Item (Index)
Index: The index number of the single ColorScheme object in the collection to be returned.
Dim cse As ColorScheme
Set cse = ActivePresentation.ColorSchemes(Index:=1)