ColorStops.Count property (Excel)

Returns or sets the count of the represented object. Read-only.

Syntax

expression.Count

expression An expression that returns a ColorStops object.

Return value

Long

Example

Returns the number of ColorStops in the active cell.

ActiveCell.Interior.Gradient.ColorStops.Count

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.