Class ColorScheme (PowerPoint VBA)
The class ColorScheme represents a color scheme, which is a set of eight colors used for the different elements of a slide, notes page, or handout, such as the title or background. (Note that the color schemes for slides, notes pages, and handouts in a presentation can be set independently.) To use a ColorScheme class variable it first needs to be instantiated, for example
Dim cse as ColorScheme
Set cse = ActivePresentation.ColorSchemes(Index:=1)
Colors
Returns an RGBColor object that represents a single color in a color scheme.
Colors (SchemeColor)
SchemeColor: The individual color in the specified color scheme.
Dim rgbColors As RGBColor
Set rgbColors = ActivePresentation.ColorSchemes(1).Colors(SchemeColor:=ppAccent1)
Count
Returns the number of objects in the specified collection.
Dim lngCount As Long
lngCount = ActivePresentation.ColorSchemes(1).Count
Delete
Deletes the specified ColorScheme object.
ActivePresentation.ColorSchemes(1).Delete