Color Property
The document is archived and information here might be outdated

Borders.Color Property

Office 2007
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.



expression   An expression that returns a Borders object.


BorderThe color of the border.
BordersThe color of all four borders of a range. If they're not all the same color, Color returns 0 (zero).
FontThe color of the font.
InteriorThe cell shading color or the drawing object fill color.
TabThe color of the tab.


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

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

© 2016 Microsoft