This documentation is archived and is not being maintained.

ColorFormat.Brightness Property (Excel)

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

Version Added: Excel 2010

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