Skip to content

Latest commit

 

History

History
54 lines (31 loc) · 1.14 KB

Project.chart.chartarea.md

File metadata and controls

54 lines (31 loc) · 1.14 KB
title ms.service ms.assetid ms.date ms.localizationpriority
Chart.ChartArea property (Project)
project-server
384eb030-741d-e69d-cd27-d4e414d7da8c
06/08/2017
medium

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

[!includeSupport and feedback]