MajorTickMarks Property

Microsoft Office Web Components Visual Basic

.

expression.MajorTickMarks

expression    Required. An expression that returns a ChAxis object.

Example

This example turns off major tick marks on the specified axis.

Sub DisableMajorTickMarks()
   Dim chConstants

   Set chConstants = ChartSpace1.Constants

   ChartSpace1.Charts(0).Axes(chConstants.chAxisPositionLeft).MajorTickMarks _
             = chConstants.chTickMarkNone
End Sub