Chart.PlotArea property (Project)

Gets an Office.IMsoPlotArea object that represents the plot area of a chart. Read-only IMsoPlotArea.

Syntax

expression.PlotArea

expression A variable that represents a Chart object.

Example

The following example sets the inside height of the plot area 30 points greater than it was set previously.

Sub SetChartPlotAreaHeight()
    Dim chartShape As Shape
    Dim reportName As String
    Dim insideHeight As Double
    
    reportName = "Simple scalar chart"
    Set chartShape = ActiveProject.Reports(reportName).Shapes(1)
    
    insideHeight = chartShape.Chart.PlotArea.InsideHeight
    chartShape.Chart.PlotArea.InsideHeight = insideHeight + 30
End Sub

Property value

IMSOPLOTAREA

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.