Skip to content

Latest commit

 

History

History
49 lines (24 loc) · 1022 Bytes

ca90fc42-2a7a-d43e-9c2c-0055f6bf9010.md

File metadata and controls

49 lines (24 loc) · 1022 Bytes

Border.Color Property (Excel)

Returns or sets the primary color of the object, as shown in the table in the remarks section. Use the RGB function to create a color value. Read/write Variant .

Syntax

expression . Color

expression An expression that returns a Border object.

Remarks

Object Color
Border The color of the border.
Borders The color of all four borders of a range. If they're not all the same color, Color returns 0 (zero).
Font The color of the font.
Interior The cell shading color or the drawing object fill color.
Tab The color of the tab.

Example

This example sets the color of the tick-mark labels on the value axis in Chart1.

Charts("Chart1").Axes(xlValue).TickLabels.Font.Color = _ 
 RGB(0, 255, 0)

See also

Concepts

Border Object

Other resources

Border Object Members