ColorFormat.Brightness Property (Excel)

Office 2013 and later

Contribute to this content

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

Returns or sets the luminosity of the specified object. Read/write

expression .Brightness

expression A variable that represents a ColorFormat object.

Return Value


The value for this property must be a number from 0.0 (dimmest) to 1.0 (brightest).

The following code example sets the brightness of the fill color for the first shape in the active worksheet.

ActiveSheet.Shapes(1).Fill.ForeColor.Brightness = 0.5