UseGradient Property
The UseGradient property returns or sets the use of a gradient fill pattern. Returns a Boolean.
Syntax
object.UseGradient
object.UseGradient = UseGradient
Parameter | Type | Description |
UseGradient | Boolean | required, true to use a gradient fill |
Remarks
Not all objects with fill properties support the use of gradient fills.
Example 1
This example demonstrates how to return whether or not the a fill is a gradient fill.
Debug.Print FillFormat.UseGradient
Example 2
This example demonstrates how to set the use of a gradient fill.
FillFormat.UseGradient = True
Used by: AutoFill object