GradientColorType Property
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

GradientColorType Property

Office 2003

MsoGradientColorType can be one of these MsoGradientColorType constants.
msoGradientColorMixed
msoGradientOneColor
msoGradientPresetColors
msoGradientTwoColors

expression.GradientColorType

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

This example changes the fill for all shapes in myDocument that have a two-color gradient fill to a preset gradient fill.

Set myDocument = ActivePresentation.Slides(1)
For Each s In myDocument.Shapes
    With s.Fill
        If .GradientColorType = msoGradientTwoColors Then
            .PresetGradient msoGradientHorizontal, _
                1, msoGradientBrass
        End If
    End With
Next
		


Applies to | FillFormat Object


Show:
© 2016 Microsoft