Share via


Selection.ExtendMode Property (Word)

True if Extend mode is active. Read/write Boolean.

Syntax

expression .ExtendMode

expression An expression that returns a Selection object.

Remarks

When Extend mode is active, the Extend argument of the following methods is True by default: EndKey, HomeKey, MoveDown, MoveLeft, MoveRight, and MoveUp. Also, the letters "EXT" appear on the status bar.

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

See Also

Concepts

Selection Object Members

Selection Object