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
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for