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

Axis.HasDisplayUnitLabel Property (PowerPoint)

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

True if the label specified by the DisplayUnit or DisplayUnitCustom property is displayed on the specified axis. The default is True. Read/write Boolean.

Syntax

expression. HasDisplayUnitLabel

expression A variable that represents an Axis object.

Example

Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

The following example sets the units on the value axis of the first chart in the active document to increments of 500 but keeps the unit label hidden.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        With .Chart.Axes(xlValue)

            .DisplayUnit = xlCustom

            .DisplayUnitCustom = 500

            .AxisTitle.Caption = "Rebate Amounts"

            .HasDisplayUnitLabel = False

        End With

    End If

End With

See also

Concepts

Axis Object

© 2017 Microsoft