MajorUnitIsAuto property (Excel Graph)

True if Graph calculates the major units for the axis. Read/write Boolean.

Syntax

expression.MajorUnitIsAuto

expression Required. An expression that returns one of the objects in the Applies To list.

Remarks

Setting the MajorUnit property sets this property to False.

Example

This example automatically sets the major and minor units for the value axis.

With myChart.Axes(xlValue) 
 .MajorUnitIsAuto = True 
 .MinorUnitIsAuto = True 
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.