Options.ReplaceSelection property (Word)
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.
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
See also
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for