Edit

LinearGradient.Degree property (Excel)

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

Syntax

expression.Degree

expression A variable that represents a LinearGradient object.

Return value

Double

Remarks

Uses values ranging from 0–360.

Example

With Selection.Interior 
 .Pattern = xlPatternLinearGradient 
 .Gradient.Degree = 45 
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.