SchemeColor property (Excel Graph)

Returns or sets the color of the specified ChartColorFormat object as an index in the current color scheme. Read/write Long.

Syntax

expression.SchemeColor

expression Required. An expression that returns one of the objects in the Applies To list.

Example

This example sets the foreground color, background color, and gradient for the chart area fill on the chart.

With myChart.ChartArea.Fill 
 .Visible = True 
 .ForeColor.SchemeColor = 15 
 .BackColor.SchemeColor = 17 
 .TwoColorGradient msoGradientHorizontal, 1 
End With

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.