ReplaceSelection Property

Microsoft Word Visual Basic

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