DisplayUnitLabel Object [Excel 2003 VBA Language Reference]

Multiple objects

Represents a unit label on an axis in the specified chart. 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.

Using the DisplayUnitLabel Object

Use the DisplayUnitLabel property to return the DisplayUnitLabel object. The following example sets the display label caption to "Millions" on the value axis in 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

Properties | Application Property | AutoScaleFont Property | Border Property | Caption Property | Characters Property | Creator Property | Fill Property | Font Property | HorizontalAlignment Property | Interior Property | Left Property | Name Property | Orientation Property | Parent Property | ReadingOrder Property | Shadow Property | Text Property | Top Property | VerticalAlignment Property

Methods | Delete Method | Select Method

Parent Objects | Axis Object

Child Objects | Border Object | Characters Object | ChartFillFormat Object | Font Object | Interior Object

See Also | DisplayUnitLabel Property