MoveRight Method

See Also         Example         Applies To

Moves the selection to the right and returns the number of units it's been moved.

Syntax

expression.MoveRight(Unit, Count, Extend)

expression   Required. An expression that returns a Selection object.

Unit   Optional Variant. The unit by which the selection is to be moved. Can be one of the following WdUnits constants: wdCell, wdCharacter, wdWord, or wdSentence. The default value is wdCharacter.

Count   Optional Variant. The number of units the selection is to be moved. The default value is 1.

Extend   Optional Variant. Can be either wdMove or wdExtend. If wdMove is used, the selection is collapsed to the end point and moved to the right. If wdExtend is used, the selection is extended to the right. The default value is wdMove.

Remarks

When the Unit is wdCell, the Extend argument will only be wdMove.