Axis.CategoryNames Property
Returns or sets all the category names for the specified axis, as a text array. Read/write Variant.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property CategoryNames As Object
Get
Set
'Usage
Dim instance As Axis
Dim value As Object
value = instance.CategoryNames
instance.CategoryNames = value
Object CategoryNames { get; set; }
Property Value
Type: System.Object
Examples
This example uses an array to set individual category names for the first chart in the active document.
With ActivePresentation.Slides(1).Shapes(1)
If .HasChart Then
.Chart.Axes(xlCategory).CategoryNames= _
Array ("1985", "1986", "1987", "1988", "1989")
End If
End With