Syntax

expression.Item(Type, AxisGroup)

expression A variable that represents an Axes object.

Parameters

Name Required/Optional Data Type Description
Type Required The axis type.
AxisGroup Optional The axis.

Return Value
Axis

Example

This example sets the title text for the category axis on Chart1.

Visual Basic for Applications
With Charts("chart1").Axes.Item(xlCategory) .HasTitle = True .AxisTitle.Caption = "1994" End With

See also: