Class PlotArea (Word 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 = ActiveDocument.Background.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, InsideHeight and InsideWidth

Methods

This is the main method of the PlotArea class

Select - Selects the object.

ActiveDocument.Background.Chart.PlotArea.Select

Properties

Height returns or sets the height, in points, of the object.

ActiveDocument.Background.Chart.PlotArea.Height =

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

ActiveDocument.Background.Chart.PlotArea.InsideLeft =

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

ActiveDocument.Background.Chart.PlotArea.InsideTop =

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

ActiveDocument.Background.Chart.PlotArea.Left =

Name returns the name of the object.

Dim strName As String
strName = ActiveDocument.Background.Chart.PlotArea.Name

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

Dim objParent As Object
Set objParent = ActiveDocument.Background.Chart.PlotArea.Parent

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

ActiveDocument.Background.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).

ActiveDocument.Background.Chart.PlotArea.Top =

Width returns or sets the width, in points, of the object.

ActiveDocument.Background.Chart.PlotArea.Width =