Class AxisTitle (Excel VBA)

The class AxisTitle represents a chart axis title.

The main procedures of class AxisTitle are Delete and Select

Themes

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

Formula with its procedures Formula, FormulaLocal, FormulaR1C1 and FormulaR1C1Local

Methods

These are the main methods of the AxisTitle class

Delete - Deletes the object.

Select - Selects the object.

Properties

Caption returns or sets a String value that represents the axis title text.

Characters returns a Characters object that represents a range of characters within the object text. You can use the Characters object to format characters within a text string.

Format returns the ChartFormat object.

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

HorizontalAlignment returns or sets a value that represents the horizontal alignment for the specified object.

IncludeInLayout true if an axis title will occupy the chart layout space when a chart layout is being determined. The default value is True.

Left returns or sets a Double value that represents the distance, in points, from the left edge of the object to the left edge of column A (on a worksheet) or the left edge of the chart area (on a chart).

Name returns a String value that represents the name of the object.

Orientation returns or sets a value that represents the text orientation.

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

Position returns or sets the position of the axis title on the chart.

ReadingOrder returns or sets the reading order for the specified object. Can be one of the following XlReadingOrder constants: xlRTL (right-to-left), xlLTR (left-to-right), or xlContext.

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

Text returns or sets the text for the specified object.

With Charts("Chart1").Axes(xlCategory) 
 .HasTitle = True 
 .AxisTitle.Text = "Month" 
End With

Top returns or sets a Double value that represents 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).

VerticalAlignment returns or sets a value that represents the vertical alignment of the specified object.

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