Share via


HasTickLabels Property

True if the specified axis has a label at each major tick mark. The default value is True. Read/write Boolean.

expression.HasTickLabels

*expression   * Required. An expression that returns a ChAxis object.

Example

This example turns off tick-mark labels on the category axis on the first chart in ChartSpace1.

Sub DisableTickLabels()
    Dim chConstants
    
    Set chConstants = ChartSpace1.Constants
    
    ' Turn off the tick mark labels on the category axis.
    ChartSpace1.Charts(0).Axes(chConstants.chAxisPositionCategory).HasTickLabels = False
End Sub

Applies to | ChAxis Object