Options.GridDistanceVertical Property

Word Developer Reference

Returns or sets the amount of vertical space between the invisible gridlines that Word uses when you draw, move, and resize AutoShapes or East Asian characters in new documents. Read/write Single.

Syntax

expression.GridDistanceVertical

expression   A variable that represents an Options collection.

Example

This example sets the horizontal and vertical distance between gridlines and then enables the Snap objects to grid feature for a new document.

Visual Basic for Applications
  With Options
    .GridDistanceHorizontal = InchesToPoints(0.2)
    .GridDistanceVertical = InchesToPoints(0.2)
    .SnapToGrid = True
End With
Documents.Add

See Also