Chart.HasAxis (Excel)

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 setting this property. Microsoft Excel may create or delete axes if you change the chart type or the Axis.AxisGroup, Chart.AxisGroup, or Series.AxisGroup properties.

HasAxis (Index1, Index2)


ActiveChart.HasAxis = True

Arguments

Optional arguments

The following arguments are optional

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

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