FillFormat.Solid method (Word)
Sets the specified fill to a uniform color.
Syntax
expression.Solid
expression Required. A variable that represents a FillFormat object.
Remarks
Use this method to convert a gradient, textured, patterned, or background fill back to a solid fill.
Example
This example converts all fills on the active document to uniform red fills.
Dim shapeLoop As Shape
For Each shapeLoop In ActiveDocument.Shapes
With shapeLoop.Fill
.Solid
.ForeColor.RGB = RGB(255, 0, 0)
End With
Next
See also
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.