CommandButton.PressedTint Property (Access)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Gets or sets the tint applied to the theme color in the PressedColor property of the specified object. Read/write Single.

expression .PressedTint

expression A variable that represents a CommandButton object.

The PressedTint property contains a numeric expression that can be used to lighten the theme color in the PressedColor property. The default value of the PressedTint property is 100, which is neutral, and does not change the theme color. To lighten the color, first determine the percentage by which to lighten from 1 to 100, then subtract that value as a whole number from 100 and use the remainder. For example, to lighten the theme color tint by 75%, subtract 75 from 100 and use the remainder, which is 25.

This property is not surfaced in the property sheet.

Show: