Partager via


Axis.DisplayUnitCustom Property (Excel)

If the value of the DisplayUnit property is xlCustom, the DisplayUnitCustom property returns or sets the value of the displayed units. The value must be from 0 through 10E307. Read/write Double.

Syntax

expression .DisplayUnitCustom

expression A variable that represents an Axis object.

Remarks

Using unit labels when charting large values makes your tick mark labels easier to read. For example, if you label your value axis in units of hundreds, thousands, or millions, you can use smaller numeric values at the tick marks on the axis.

Example

This example sets the units displayed on the value axis in Chart1 to increments of 500.

With Charts("Chart1").Axes(xlValue) 
 .DisplayUnit = xlCustom 
 .DisplayUnitCustom = 500 
 .HasTitle = True 
 .AxisTitle.Caption = "Rebate Amounts" 
End With

See Also

Concepts

Axis Object Members

Axis Object