CommandButton.PressedForeThemeColorIndex property (Access)
Gets or sets the theme color index that represents a color in the applied color theme associated with the PressedForeColor property of the specified object. Read/write Long.
Syntax
expression.PressedForeThemeColorIndex
expression A variable that represents a CommandButton object.
Remarks
The PressedForeThemeColorIndex uses one of the values listed in the following table.
Value | Description |
---|---|
0 | Text 1 |
1 | Background 1 |
2 | Text 2 |
3 | Background 2 |
4 | Accent 1 |
5 | Accent 2 |
6 | Accent 3 |
7 | Accent 4 |
8 (Default) | Accent 5 |
9 | Accent 6 |
10 | Hyperlink |
11 | Followed Hyperlink |
If no theme is applied, the PressedForeThemeColorIndex property contains -1.
This property is not surfaced in the property sheet.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.