Class ChartArea (Word VBA)

The class ChartArea represents the chart area of a chart.

The main procedures of class ChartArea are Copy and Select

Set

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

Dim caa as ChartArea
Set caa = ActiveDocument.Background.Chart.ChartArea

ChartArea class variables can be set using the Chart.ChartArea 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 and Format

Methods

These are the main methods of the ChartArea class

Copy - Copies the object to the Clipboard.

ActiveDocument.Background.Chart.ChartArea.Copy

Select - Selects the object.

ActiveDocument.Background.Chart.ChartArea.Select

Properties

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

ActiveDocument.Background.Chart.ChartArea.Height =

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

Name returns the name of the object.

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

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

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

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

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

ActiveDocument.Background.Chart.ChartArea.Top =

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

ActiveDocument.Background.Chart.ChartArea.Width =