Axis.HasDisplayUnitLabel property (Word)
expression A variable that represents an Axis object.
The following example sets the units on the value axis of the first chart in the active document to increments of 500 but keeps the unit label hidden.
With ActiveDocument.InlineShapes(1) If .HasChart Then With .Chart.Axes(xlValue) .DisplayUnit = xlCustom .DisplayUnitCustom = 500 .AxisTitle.Caption = "Rebate Amounts" .HasDisplayUnitLabel = False End With End If End With
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.