Class ChartArea (PowerPoint VBA)
The class ChartArea represents the chart area of a chart.
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
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.
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).