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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for