Extend Method

See Also         Example         Applies To

Turns extend mode on and extends the selection to the next unit of text. The progression is as follows: word, sentence, paragraph, section, entire document. If Character is specified, extends the selection through the next instance of the specified character.

Syntax

expression.Extend(Character)

expression   Required. An expression that returns a Selection object.

Character   Optional Variant. The character through which the selection is extended. This argument is case sensitive and must evaluate to a String or an error occurs.