Share via


DisplayUnitLabel Object

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Axis
Aa189464.parchild(en-us,office.10).gifDisplayUnitLabel
Aa189464.space(en-us,office.10).gifAa189464.parchild(en-us,office.10).gif

Represents a unit label on the value axis in the specified chart. Unit labels are useful for charting large values— for example, numbers in the millions or billions. You can make the chart more readable by using a single unit label instead of large numbers with strings of zeros next to the tick marks on the axis. This way, you need never have numbers of more than one or two digits by the tick marks.

Using the DisplayUnitLabel Object

Use the DisplayUnitLabel property to return the DisplayUnitLabel object. The following 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