HasAutoMajorUnit Property Example
This example sets the major unit for the specified axis if the major unit is currently set to be determined automatically.
Set c = ChartSpace1.Constants
Set axs = ChartSpace1.Charts(0).Axes(c.chAxisPositionLeft)
If axs.HasAutoMajorUnit Then axs.MajorUnit = 5000