Axis.CategoryNames property (Word)
Returns or sets all the category names as a text array for the specified axis. Read/write Variant.
Syntax
expression.CategoryNames
expression A variable that represents an Axis object.
Example
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
Support and feedback
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.