AxisTitle Object [Excel 2003 VBA Language Reference]

Multiple objects

Represents a chart axis title.

Using the AxisTitle Object

Use the AxisTitle property to return an AxisTitle object. The following example activates embedded chart one, sets the value axis title text, sets the font to Bookman 10 point, and formats the word millions as italic.

With ActiveChart.Axes(xlValue)
    .HasTitle = True
    With .AxisTitle
        .Caption = "Revenue (millions)"
        .Font.Name = "bookman"
        .Font.Size = 10
        .Characters(10, 8).Font.Italic = True
    End With
End With


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

Properties | Application Property | AutoScaleFont Property | Border Property | Caption Property | Characters Property | Creator Property | Fill Property | Font Property | HorizontalAlignment Property | Interior Property | Left Property | Name Property | Orientation Property | Parent Property | ReadingOrder Property | Shadow Property | Text Property | Top Property | VerticalAlignment Property

Methods | Delete Method | Select Method

Parent Objects | Axis Object

Child Objects | Border Object | Characters Object | ChartFillFormat Object | Font Object | Interior Object