CurrentLine Property
Home Page (Objects) | Overview | FAQ | Reference
Applies to: TextSelection object
Gets the line where the insertion point is.
Syntax
object**.CurrentLine**
Parameters
object
An expression that evaluates to a TextSelection object.
Remarks
The CurrentLine property has the Long type.
A selection is a single point (the insertion point) or a contiguous range of text. If the TextSelection object represents a contiguous range of selected text, the CurrentColumn and CurrentLine properties indicate the active end of the selection. This is the point where the user stopped dragging the mouse.
Example
The following example gets the number of the line containing the insertion point:
Dim LineNum
LineNum = ActiveDocument.Selection.CurrentLine