MajorUnit Property

Microsoft Office Web Components Visual Basic

expression.MajorUnit

expression    Required. An expression that returns a ChAxis object.

Remarks

Setting this property causes the HasAutoMajorUnit property to be set to False.

Example

This example sets the major and minor unit for the value axis.

Sub SetValueAxis()
   Dim chConstants
   Dim axValueAxis

   Set chConstants = ChartSpace1.Constants

   Set axValueAxis = ChartSpace1.Charts(0).Axes(chConstants.chAxisPositionValue)

   axValueAxis.MajorUnit = 7
   axValueAxis.MinorUnit = 2.5
End Sub