April 2006
Beginner
1114 pages
98h 16m
English
chartarea.Fill
Returns the ChartFillFormat object for the chart area. Use this object to change the color or pattern of the chart area. For example, the following code displays a gradient background on the active chart:
Sub ChartAreaFill( )
Dim chrt As Chart, cf As ChartFillFormat
' Get the chart.
Set chrt = ActiveChart
' Get the chart area fill.
Set cf = chrt.ChartArea.Fill
' Make the fill visible.
cf.Visible = True
' Display a gradient fill.
cf.TwoColorGradient msoGradientDiagonalUp, 2
End SubRead now
Unlock full access