Chart.ChartArea property (Project)

Gets an Office.IMsoChartArea object that represents the complete chart area for the chart. Read-only IMsoChartArea.

Syntax

expression. ChartArea

expression A variable that represents a Chart object.

Remarks

To see the IMsoChartArea object in the Object Browser, show the hidden members in the Office library.

Example

In the following example, the chart is the first shape in the "Simple scalar chart" report. The example sets the chart area interior color to red.

Sub SetChartAreaColor()
    Dim chartShape As Shape
    Dim i As Integer
    
    Set chartShape = ActiveProject.Reports("Simple scalar chart").Shapes(1)
    
    With chartShape.Chart.ChartArea
        .Interior.ColorIndex = 3
    End With
End Sub

Property value

IMSOCHARTAREA

See also

Chart Object

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.