title | ms.service | ms.assetid | ms.date | ms.localizationpriority |
---|---|---|---|---|
Chart.ChartArea property (Project) |
project-server |
384eb030-741d-e69d-cd27-d4e414d7da8c |
06/08/2017 |
medium |
Gets an Office.IMsoChartArea object that represents the complete chart area for the chart. Read-only IMsoChartArea.
expression. ChartArea
expression A variable that represents a Chart object.
To see the IMsoChartArea object in the Object Browser, show the hidden members in the Office library.
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
IMSOCHARTAREA
[!includeSupport and feedback]