Axes.Item (Word)

Returns a single Axis object from an Axes collection.

Syntax : expression.Item (Type, AxisGroup)

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 With .Chart.Axes.Item(xlCategory) 
 .HasTitle = True 
 .AxisTitle.Caption = "1994" 
 End With 
 End If 
End With

Arguments

The following argument is required

Type (XlAxisType) - One of the enumeration values that specifies the axis type.

Possible Values are xlCategory - Axis displays categories, xlSeriesAxis - Axis displays data series, xlValue - Axis displays values.

The following argument is optional

AxisGroup (XlAxisGroup) - One of the enumeration values that specifies the axis.

Possible Values are xlPrimary - The primary axis group, xlSecondary - The secondary axis group.