AxisGroup property (Excel Graph)

The AxisGroup property as it applies to the ChartGroup, Series, and Axis objects.

ChartGroup and Series objects

Returns the group for the specified chart group or series. Read/write XlAxisGroup.

Syntax

expression.AxisGroup

expression Required. An expression that returns a ChartGroup or Series object.

Axis object

Returns the group for the specified axis. Read-only XlAxisGroup.

Syntax

expression.AxisGroup

expression Required. An expression that returns an Axis object.

Remarks

For 3D charts, only xlPrimary is valid.

Example

This example deletes the value axis if it's in the secondary group.

With myChart.Axes(xlValue) 
 If .AxisGroup = xlSecondary Then .Delete 
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.