Table of contents
TOC
Collapse the table of content
Expand the table of content

FillFormat.Solid Method (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Sets the specified fill to a uniform color. Use this method to convert a gradient, textured, patterned, or background fill back to a solid fill.

Syntax

expression. Solid

_expression_A variable that represents a FillFormat object.

Example

This example converts all fills on the first page of the active publication to uniform red fills.

Dim shpLoop As Shape 

For Each shpLoop In ActiveDocument.Pages(1).Shapes 
 With shpLoop.Fill 
 .Solid 
 .ForeColor.RGB = RGB(255, 0, 0) 
 End With 
Next shpLoop 
© 2018 Microsoft