Axis object (Word)
Represents a single axis in a chart.
The Axis object is a member of the Axes collection.
Use Axes ( Type , AxisGroup ) where Type is the axis type and AxisGroup is the axis group to return a single Axis object. Type can be one of the following XlAxisType constants: xlCategory, xlSeries, or xlValue. AxisGroup can be one of the following XlAxisGroup constants: xlPrimary or xlSecondary. For more information, see the Axes method.
The following example sets the category axis title text for the first chart in the active document.
With ActiveDocument.InlineShapes(1) If .HasChart Then With .Chart.Axes(xlCategory) .HasTitle = True .AxisTitle.Caption = "1994" End With End If End With
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.