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

Axis.CategoryNames Property (PowerPoint)

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

Returns or sets all the category names as a text array for the specified axis. Read/write Variant.


expression. CategoryNames

expression A variable that represents an Axis object.


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

The following example uses an array to set individual category names for the first chart in the active document.

With ActiveDocument.InlineShapes(1)
    If .HasChart Then
        .Chart.Axes(xlCategory).CategoryNames = _
            Array ("1985", "1986", "1987", "1988", "1989")
    End If
End With

See also


Axis Object

© 2018 Microsoft