The ForeColor property returns or sets the fill foreground color as an RGB value. Returns a MVColor.
Syntax
object.ForeColor
object.ForeColor = Color
Parameter |
Type |
Description |
Color |
required; color, see remarks |
Remarks
Use the enumeration [mvColorRed], 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.
Debug.Print FillFormat.ForeColor
Example 2
This example demonstrates how to set the foreground color to blue.
FillFormat.ForeColor = mvColorBlue
Used by: FillFormat object, FontFormat object