This documentation is archived and is not being maintained.

Color Cell (Layers Section)

Office 2007

Specifies the color used to display the layer.


To set the color, enter a number from 0 to 23. This number corresponds to a color in the current color palette, which you can also set in the Color Palette dialog box (Tools menu).

This cell corresponds to the Color option in the Layer Properties dialog box (View menu).

To enter a custom color, use the RGB or HSL function. The value of a custom color is its RGB color, and RGB(r, g, b), rather than a number, will be shown in the ShapeSheet window. When used in numeric operations, custom colors have values of 24 and above. A value of 255 indicates that the layer has no color.

You can set the transparency of the layer color in the Transparency cell.

To get a reference to the Color cell by name from another formula, or from a program using the CellsU property, use:

Cell name:

where i = <1>, 2, 3, ...

To get a reference to the Color cell by index from a program, use the CellsSRC property with the following arguments:

Section index:


Row index:

visRowLayer + i
where i = 0, 1, 2, ...

Cell index: