ReplaceText Property

Microsoft Word Visual Basic

expression.ReplaceText

expression    Required. An expression that returns an AutoCorrect object.

Example

This example sets Word to automatically replace specified text with entries from the AutoCorrect list as you type.

AutoCorrect.ReplaceText = True
		

This example toggles the value of the ReplaceText property.

AutoCorrect.ReplaceText = Not AutoCorrect.ReplaceText