Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 856 Bytes

Excel.FillFormat.Solid.md

File metadata and controls

43 lines (28 loc) · 856 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
FillFormat.Solid method (Excel)
vbaxl10.chm115007
vbaxl10.chm115007
Excel.FillFormat.Solid
5db7e000-7449-6bbc-192f-8b718ccffac6
04/26/2019
medium

FillFormat.Solid method (Excel)

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 myDocument to uniform red fills.

Set myDocument = Worksheets(1) 
For Each s In myDocument.Shapes 
 With s.Fill 
 .Solid 
 .ForeColor.RGB = RGB(255, 0, 0) 
 End With 
Next

[!includeSupport and feedback]