Options.ReplaceSelection Property

Word Developer Reference

True if the result of typing or pasting replaces the selection. Read/write Boolean.

Syntax

expression.ReplaceSelection

expression   An expression that returns an Options object.

Remarks

False if the result of typing or pasting is added before the selection, leaving the selection intact.

Example

This example sets Microsoft Word to add the result of typing or pasting before the selection, leaving the selection intact.

Visual Basic for Applications
  Options.ReplaceSelection = False

This example returns the status of the Typing replaces selection option on the Edit tab in the Options dialog box (Tools menu).

Visual Basic for Applications
  temp = Options.ReplaceSelection

See Also