BackColor Property [AutoFill, AutoRuler]

The BackColor property returns or sets the background color as an RGB value. Returns a Long.

Syntax

object.BackColor

object.BackColor = Color

 

Parameter Type Description
Color grfColor required, see remarks

 

Remarks

Use the enumeration [grfColorRed], RGB value [RGB(255,0,0)], or number [255] to set a color. A non-solid pattern must be selected for the background color to show. Use the ForeColor property with 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= grfColorDarkGreen

 

Used by: AutoFill object, AutoRuler object