ReplaceSelection Property
ReplaceSelection Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
True if the result of typing or pasting replaces the selection. False if the result of typing or pasting is added before the selection, leaving the selection intact. Read/write Boolean.
expression.ReplaceSelection
expression Required. An expression that returns an Options object.
Example
This example sets Microsoft Word to add the result of typing or pasting before the selection, leaving the selection intact.
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).
temp = Options.ReplaceSelection