ForeColor Property
The ForeColor property is superseded by ForeColorRGBA. Please consider using the more recent version. ForeColor has been retained for backwards compatibility.
ForeColor returns or sets the foreground color as an RGB value. Returns a long.
Syntax
object.ForeColor
object.ForeColor = Color
Parameter |
Type |
Description |
Color |
required |
Remarks
Use the enumeration [srfColorRed], RGB value [RGB(255,0,0)], or number [255] to set a color. When using ForeColor with fill, a pattern must be selected for the color to show.
Example 1
This example demonstrates how to return the foreground color of fill.
Debug.Print FillFormat.ForeColor
Example 2
This example demonstrates how to set the foreground color of a fill to red.
FillFormat.ForeColor = srfColorRed
Used by: FillFormat object, LineFormat object