MoveTo Method

Home Page (Objects)OverviewFAQReference

Applies to: TextSelection object

Moves the insertion point to a specified line and column.

Syntax

object.MoveTo line, column [,extend]

Parameters

object

An expression that evaluates to a TextSelection object.

line

A Long specifying the line number . Some possible values are:

column

A Long specifying the column number. If this number is greater than the number of the rightmost column, this number becomes the number of the rightmost column. Some possible values are:

extend

(Optional) A string constant of type DsMovementOptions that specifies what to do with the selection. Possible values are:

Example

The following example moves the insertion point to the third column in the second line:

ActiveDocument.Selection.MoveTo 2 3

See Also   LineDown method.