Selection.ExtendMode property (Word)
True if Extend mode is active. Read/write Boolean.
expression An expression that returns a Selection object.
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 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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.