Share via


Axis.TickMarkSpacing Property (Word)

Returns or sets the number of categories or series between tick marks. Read/write Long.

Version Information

Version Added: Word 2007

Syntax

expression .TickMarkSpacing

expression A variable that represents an Axis object.

Remarks

This property applies only to category and series axes. It can be a value from 1 through 31999.

Use the MajorUnit and MinorUnit properties to set tick-mark spacing on the value axis.

Example

The following example sets the number of categories between tick marks on the category axis of the first chart in the active document.

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 .Chart.Axes(xlCategory).TickMarkSpacing = 10 
 End If 
End With

See Also

Concepts

Axis Object Members

Axis Object