DisplayUnitLabel object (Excel)
Represents a unit label on an axis in the specified chart.
Remarks
Unit labels are useful for charting large values—for example, in the millions or billions. You can make the chart more readable by using a single unit label instead of large numbers at each tick mark.
Example
Use the DisplayUnitLabel property of the Axis object to return the DisplayUnitLabel object. The following example sets the display label caption to Millions on the value axis on Chart1, and then it turns off automatic font scaling.
With Charts("Chart1").Axes(xlValue)
.DisplayUnit = xlMillions
.HasDisplayUnitLabel = True
With .DisplayUnitLabel
.Caption = "Millions"
.AutoScaleFont = False
End With
End With
Methods
Properties
- Application
- Caption
- Characters
- Creator
- Format
- Formula
- FormulaLocal
- FormulaR1C1
- FormulaR1C1Local
- Height
- HorizontalAlignment
- Left
- Name
- Orientation
- Parent
- Position
- ReadingOrder
- Shadow
- Text
- Top
- VerticalAlignment
- Width
See also
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.