WordRight Method
Home Page (Objects) | Overview | FAQ | Reference
Applies to: TextSelection object
Moves the insertion point one word to the right.
Syntax
object**.WordRight** [extend][, count]
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+RIGHT ARROW.
dsMove Does not extend the selection (the default).
count
(Optional) A Long that specifies the number of times you want to repeat this action. The default is one.
Remarks
The WordRight method has the same effect as pressing CTRL+RIGHT ARROW.
Example
The following example moves the insertion point one word to the right and extends the selection:
ActiveDocument.Selection.WordRight dsExtend
See Also CharLeft method, CharRight method, WordLeft method.