Редагувати

Поділитися через


ColorFormat.Brightness property (Excel)

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

Syntax

expression.Brightness

expression A variable that represents a ColorFormat object.

Return value

Single

Remarks

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

Example

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

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

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.