Chart.HasAxis procedure builder

Chart.HasAxis (Word)

Returns or sets which axes exist on the chart. Read/write Variant.

You must enter a value for at least one of the parameters when you set this property. Microsoft Word may create or delete axes if you change the chart type or the AxisGroup property.

HasAxis (Index1, Index2)

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 .Chart.HasAxis(xlValue, xlPrimary) = True 
 End If 
End With 

Arguments

Optional arguments

The following arguments are optional

Index1 - The axis type. Series axes apply only to 3D charts. Can be one of the XlAxisType constants

Index2 - The axis group. 3D charts have only one set of axes. Can be one of the XlAxisGroup constants