Share via


LinearGradient.Degree Property

Excel Developer Reference

The angle of the linear gradient fill within a selection. Read/write

Version Information
 Version Added:  Excel 2007

Syntax

expression.Degree

expression   A variable that represents a LinearGradient object.

Return Value
Double

Remarks
Uses values ranging from 0 - 360.

Example

Visual Basic for Applications
  With Selection.Interior
        .Pattern = xlPatternLinearGradient
        .Gradient.Degree = 45
End With

See Also