This documentation is archived and is not being maintained.

LineColor Cell (Line Format Section)

Office 2007

Determines the line color of the shape.


To set the line color, enter a number from 0 to 23, which is an index into a collection of line colors. You can view the line color collection in the Line dialog box (click Line on the Format menu). You can also set the value of LineColor in the Line dialog box. To switch to a different color palette, use the Color Palette dialog box (click Color Palette on the Tools 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.

You can set the transparency of the line color in the LineColorTrans cell.

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

Cell name:


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

Section index:


Row index:


Cell index: