HasDisplayUnitLabel property (Excel Graph)
True if the label specified by the DisplayUnit or DisplayUnitCustom property is displayed on the value axis. False if no units are displayed. The default value is True. Read/write Boolean.
Syntax
expression.HasDisplayUnitLabel
expression Required. An expression that returns one of the objects in the Applies To list.
Example
This example sets the units on the value axis in myChart to increments of 500, but hides the unit label itself.
With myChart.Axes(xlValue)
.DisplayUnit = xlCustom
.DisplayUnitCustom = 500
.AxisTitle.Caption = "Rebate Amounts"
.HasDisplayUnitLabel = False
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for