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

Axes.Item Method (PowerPoint)

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

Returns a single Axis object from an Axes collection.

Syntax

expression. Item( Type, AxisGroup )

expression A variable that represents an Axes object.

Parameters

NameRequired/OptionalData TypeDescription
TypeRequiredXlAxisTypeThe axis type.
AxisGroupOptionalXlAxisGroupThe 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 title text for the category axis for the first chart in the active document.

With ActivePresentation.Slides(1).Shapes(1)

    If .HasChart Then

        With .Chart.Axes.Item(xlCategory)

            .HasTitle = True

            .AxisTitle.Caption = "1994"

        End With

    End If

End With

See also

Concepts

Axes Object

© 2018 Microsoft