Table of contents
TOC
Collapse the table of content
Expand the table of content

Axis.DisplayUnit Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Returns or sets the unit label for the value axis. Read/write XlDisplayUnit, xlCustom, or xlNone.

Syntax

expression. DisplayUnit

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

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 hundreds.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        With .Chart.Axes(xlValue)

            .DisplayUnit = xlHundreds

            .HasTitle = True

            .AxisTitle.Caption = "Rebate Amounts"

        End With

    End If

End With

See also

Concepts

Axis Object

© 2018 Microsoft