Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Document.GridDistanceHorizontal Property

Office 2007
Returns or sets a Single that represents the amount of horizontal space between the invisible gridlines that Microsoft Word uses when you draw, move, and resize AutoShapes or East Asian characters in the specified document. Read/write.

Syntax

expression.GridDistanceHorizontal

expression   A variable that represents a Document object.

Example

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

Visual Basic for Applications
With ActiveDocument
    .GridDistanceHorizontal = 9
    .GridDistanceVertical = 9
    .SnapToGrid = True
End With



Community Additions

ADD
Show:
© 2015 Microsoft