SchemeColor Property

Applies To

ChartColorFormat object, ColorFormat object.

Description

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

Example

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

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