DisplayUnitLabel Property
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

DisplayUnitLabel Property

Returns the DisplayUnitLabel object for the value axis in the specified chart. Returns Null if the HasDisplayUnitLabel property is False. Read-only.

This example sets the caption for the value axis in myChart to “Millions” and turns off automatic font scaling.

With myChart.Axes(xlValue).DisplayUnitLabel 
 .Caption = "Millions" 
 .AutoScaleFont = False 
End With
© 2016 Microsoft