LineNumbering.DistanceFromText Property

Word Developer Reference

Returns or sets the distance (in points) between the right edge of line numbers and the left edge of the document text. Read/write Single.

Syntax

expression.DistanceFromText

expression   A variable that represents a LineNumbering object.

Example

This example adds line numbers to the active document. The distance between the line numbers and the left margin is 36 points (0.5 inch).

Visual Basic for Applications
  With ActiveDocument.PageSetup.LineNumbering
    .Active = True
    .CountBy = 5
    .DistanceFromText = 36
End With

See Also