Name related procedures in class Axis (Word VBA)

This page presents procedures from class Axis related to the theme Name: CategoryNames and HasTitle

CategoryNames

Returns or sets all the category names as a text array for the specified axis.

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 .Chart.Axes(xlCategory).CategoryNames = _ 
 Array ("1985", "1986", "1987", "1988", "1989") 
 End If 
End With

HasTitle

True if the axis or chart has a visible title.

An axis title is represented by an AxisTitle object.

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 With .Chart.Axis(xlCategory) 
 .HasTitle = True 
 .AxisTitle.Text = "July Sales" 
 End With 
 End If 
End With