BackColor property (Excel Graph)

Returns a ChartColorFormat object that represents the fill background color.

Syntax

expression.BackColor

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.