Share via


EndOfDocument Method

Home Page (Objects)OverviewFAQReference

Applies to: TextSelection object

Moves the insertion point to the end of the document.

Syntax

object**.EndOfDocument** [extend]

Parameters

object

An expression that evaluates to a TextSelection object.

extend

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

  • dsExtend   Extends the selection. This is the same as pressing CTRL+SHIFT+END.

  • dsMove   Does not extend the selection (the default).

Remarks

The EndOfDocument method has the same effect as pressing CTRL+END.

Example

The following example moves the insertion point to the end of the current document:

ActiveDocument.Selection.EndOfDocument

See Also   StartOfDocument method.