Color property (Excel Graph)

Returns or sets the primary color of the Border object, Font object, or the Interior object. Use the RGB function to create a color value. Read/write Variant.

Syntax

expression.Color

expression Required. An expression that returns an object in the Applies To list.

Example

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

myChart.Axes(xlValue).TickLabels.Font.Color = RGB(0, 255, 0)

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.