Name

chartarea.Interior

Synopsis

Returns the Interior object representing the background of the chart area. For example, the following code changes the color index of the active chart’s background:

Sub ChartAreaInterior( )
    Dim chrt As Chart, it As Interior
    ' Get the chart.
    Set chrt = ActiveChart
    ' Get the chart area font.
    Set it = chrt.ChartArea.Interior
    it.ColorIndex = 3
End Sub

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.