LineNumbering.DistanceFromText property (Word)

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).

With ActiveDocument.PageSetup.LineNumbering 
 .Active = True 
 .CountBy = 5 
 .DistanceFromText = 36 
End With

See also

LineNumbering Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.