Class PlotArea (PowerPoint VBA)

The class PlotArea represents the plot area of a chart.

The main procedure of class PlotArea is Select

Set

To use a PlotArea class variable it first needs to be instantiated, for example

Dim paa as PlotArea
Set paa = ActiveWindow.RangeFromPoint.Chart.PlotArea

PlotArea class variables can be set using the Chart.PlotArea procedure.

Themes

The following procedures in this class have been grouped together and are described on a separate theme page

Format with its procedures ClearFormats, Format, Height, InsideHeight, InsideWidth and Width

Methods

This is the main method of the PlotArea class

Select - Selects the object.

ActiveWindow.RangeFromPoint.Chart.PlotArea.Select

Other Methods

SetProperty -

Dim strId As String: strId = 
ActiveWindow.RangeFromPoint.Chart.PlotArea.SetProperty Id:=strId, Value:=

Properties

InsideLeft returns or sets the distance, in points, from the chart edge to the inside left edge of the plot area.

ActivePresentation.Slides(1).Shapes(1).Chart.PlotArea.InsideLeft = 50

InsideTop returns or sets the distance, in points, from the chart edge to the inside top edge of the plot area.

ActivePresentation.Slides(1).Shapes(1).Chart.PlotArea.InsideTop = 50

Left returns or sets the distance, in points, from the left edge of the object to the left edge of the chart area.

ActiveWindow.RangeFromPoint.Chart.PlotArea.Left =

Name returns the name of the object.

Dim strName As String
strName = ActiveWindow.RangeFromPoint.Chart.PlotArea.Name

Parent returns the parent for the specified object. Read-only object.

Dim objParent As Object
Set objParent = ActiveWindow.RangeFromPoint.Chart.PlotArea.Parent

Position returns or sets the position of the plot area on the chart.

ActiveWindow.RangeFromPoint.Chart.PlotArea.Position = xlChartElementPositionAutomatic

Top returns or sets the distance, in points, from the top edge of the object to the top of the first row (on a worksheet) or the top of the chart area (on a chart).

ActiveWindow.RangeFromPoint.Chart.PlotArea.Top =