ColorStops.Clear method (Excel)
Clears the represented object.
Syntax
expression.Clear
expression An expression that returns a ColorStops object.
Return value
Nothing
Example
Clears the current ColorStops.
Range("A1:A10").Select
With Selection.Interior
.Pattern = xlPatternLinearGradient
.Gradient.Degree = 90
.Gradient.ColorStops.Clear
End With
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.