ThemeColorScheme.Colors Method
Gets an object that represents a color in the color scheme of a Microsoft Office theme.
Syntax
expression.Colors(Index)
expression An expression that returns a ThemeColorScheme object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| Index | Required | MsoThemeColorSchemeIndex | The index value of the ThemeColor object. |
Return Value
ThemeColor
Example
In the following example, the msoThemeAccent1 theme color is set to the color Red and then the scheme is saved to a file.
| Visual Basic for Applications |
|---|
|