Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
If the value of the DisplayUnit property is xlCustom, returns or sets the value of the displayed units. Read/write Double.
expression.DisplayUnitCustom
expression A variable that represents an 'Axis' object.
The value of this property must be from 0 through 10E307.
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.
Note
Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.
The following example sets the units displayed on the value axis of the first chart in the active document to increments of 500.
With ActiveDocument.InlineShapes(1)
If .HasChart Then
With .Chart.Axes(xlValue)
.DisplayUnit = xlCustom
.DisplayUnitCustom = 500
.HasTitle = True
.AxisTitle.Caption = "Rebate Amounts"
End With
End If
End With
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.