Selection.IPAtEndOfLine property (Word)
True if the insertion point is at the end of a line that wraps to the next line. Read-only Boolean.
Syntax
expression. IPAtEndOfLine
expression A variable that represents a Selection object.
Remarks
False if the selection isn't collapsed, if the insertion point isn't at the end of a line, or if the insertion point is positioned before a paragraph mark.
Example
If the insertion point isn't already at the end of the line, this example moves it there.
Selection.Collapse Direction:=wdCollapseEnd
If Selection.IPAtEndOfLine = False Then
Selection.EndKey Unit:=wdLine, Extend:=wdMove
End If
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.