, HomeKey
, MoveDown
, MoveLeft
, MoveRight
, and MoveUp
. Also, the letters "EXT" appear on the status bar. Read/write Boolean.
expression.ExtendMode
expression Required. An expression that returns a Selection object.
Remarks
This property can only be set during run time; attempts to set it in Immediate mode are ignored. The Extend arguments of the EndOf and StartOf methods are not affected by this property.
Example
This example moves to the beginning of the paragraph and selects the paragraph plus the next two sentences.
With Selection
.MoveUp Unit:=wdParagraph
.ExtendMode = True
.MoveDown Unit:=wdParagraph
.MoveRight Unit:=wdSentence, Count:=2
End With
This example collapses the current selection, turns on Extend mode, and selects the current sentence.
With Selection
.Collapse
.ExtendMode = True
' Select current word.
.Extend
' Select current sentence.
.Extend
End With