Selection.MoveUp (Word)

Moves the selection up and returns the number of units that it has been moved.

MoveUp (Unit, Count, Extend)


Selection.MoveRight 
Selection.MoveUp Unit:=wdParagraph, Count:=2, Extend:=wdMove

Arguments

Optional arguments

The following arguments are optional

Unit (WdUnits) - The unit by which to move the selection. Can be one of the following WdUnits constants: wdLine, wdParagraph, wdWindow or wdScreen. The default value is wdLine. You can use the wdWindow constant for the Unit argument to move to the top or bottom of the active window. Regardless of the value of Count (greater than 1 or less than -1), the wdWindow constant moves only one unit. Use the wdScreen constant to move more than one screen.

Here you can find possible values for WdUnits

Count (Long) - The number of units the selection is to be moved. The default value is 1.

Extend (WdMovementType) - Specifies whether the selection is moved or extended. Can be either wdMove or wdExtend. If wdMove is used, the selection is collapsed to the endpoint and moved up. If wdExtend is used, the selection is extended up. The default value is wdMove.

Possible return values are wdExtend - The end of the selection is extended to the end of the specified unit, wdMove - The selection is collapsed to an insertion point and moved to the end of the specified unit. Default.