ForeColor property (Excel Graph)

Returns a ChartColorFormat object that represents the foreground fill color.

Syntax

expression.ForeColor

expression Required. An expression that returns a ChartColorFormat object.

Example

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

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.