Share via


AxisTitle Object

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Axis
Aa189450.parchild(en-us,office.10).gifAxisTitle
Aa189450.space(en-us,office.10).gifAa189450.parchild(en-us,office.10).gif

Represents the title of an axis in a chart.

Using the AxisTitle Object

Use the AxisTitle property to return an AxisTitle object. The following example sets the text of the value axis title and sets the font to 10-point Bookman.

  With myChart.Axes(xlValue)
    .HasTitle = True
    With .AxisTitle
        .Caption = "Revenue (millions)"
        .Font.Name = "bookman"
        .Font.Size = 10
    End With
End With

Remarks

The AxisTitle object doesn't exist and cannot be used unless the HasTitle property for the specified axis is True.