Axis.AxisGroup procedure builder

Axis.AxisGroup (Excel)

Returns the group for the specified axis.

xlPrimary - Primary axis group, xlSecondary - Secondary axis group.
Dim xagAxisGroup As XlAxisGroup
xagAxisGroup = ActiveChart.Axes(1).AxisGroup