BackColor Property [FillFormat]

The BackColor property is superseded by BackColorRGBA. Please consider using the more recent version. BackColor has been retained for backwards compatibility.

BackColor returns or sets the background color as an RGB value. Returns a long.

Syntax

object.BackColor

object.BackColor = Color

Parameter

Type

Description

Color

srfColor

required

Remarks

Use the enumeration [srfColorRed], RGB value [RGB(255,0,0)], or number [255] to set a color. A non-solid pattern must be selected for the color to show. Use ForeColorRGBA with the .Color property and set a solid pattern.

Example 1

This example demonstrates how to return the background color of a color fill.

Debug.Print FillFormat.BackColor

Example 2

This example demonstrates how to change the background color of a color fill to dark green.

FillFormat.BackColor = srfColorDarkGreen

Used by: FillFormat object