Table of contents
Collapse the table of content
Expand the table of content

CommandButton.ForeThemeColorIndex Property (Access)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Gets or sets a value that represents a color in the applied color theme associated with the ForeColor property of the specified object. Read/write Long.


expression. ForeThemeColorIndex

expression A variable that represents a CommandButton object.


The ForeThemeColorIndex property contains one of the index values listed in the following table.

Index ValueDescription
0Text 1
1Background 1
2Text 2
3Background 2
4Accent 1
5Accent 2
6Accent 3
7Accent 4
8Accent 5
9Accent 6
11Followed Hyperlink

If no theme is applied, the ForeThemeColorIndex property contains -1.

This property is not surfaced in the property sheet.


The following code example sets the Fore Color to the Text 2 color by setting the ForeThemeColorIndex property.


See also


CommandButton Object

© 2018 Microsoft