AxisTitle Object (Word)

Represents a chart axis title.

Version Information

Version Added: Word 2007

Remarks

Use the AxisTitle property to return an AxisTitle object.

The AxisTitle object does not exist and cannot be used unless the HasTitle property for the axis is True.

Example

The following example sets the caption, sets the font to Bookman 10 point, and formats the word "millions" as italic for the axis title of the value axis for the first chart in the active document.

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 With .Chart.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 
 End If 
End With 

See Also

Concepts

Word Object Model Reference

AxisTitle Object Members