Class ChartArea (PowerPoint VBA)

The class ChartArea represents the chart area of a chart.

The main procedures of class ChartArea are Copy and Select


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

Dim caa as ChartArea
Set caa = ActiveWindow.RangeFromPoint.Chart.ChartArea

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


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 and Width


These are the main methods of the ChartArea class

Copy - Copies the object to the Clipboard.


Select - Selects the object.



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.ChartArea.Left =

Name returns the name of the object.

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

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

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

Shadow returns or sets a value that determines whether the object has a shadow.

ActiveWindow.RangeFromPoint.Chart.ChartArea.Shadow = True

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

ActiveWindow.RangeFromPoint.Chart.ChartArea.Top =