AutoCorrectEntries.Add method (Word)
Returns an AutoCorrectEntry object that represents a plain-text AutoCorrect entry added to the list of available AutoCorrect entries.
Syntax
expression.Add (Name, Value)
expression Required. A variable that represents an 'AutoCorrectEntries' collection.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Name | Required | String | The text you want to have automatically replaced with the text specified by Value. |
Value | Required | String | The text you want to have automatically inserted whenever the text specified by Name is typed. |
Remarks
Use the AddRichText method to create a formatted AutoCorrect entry.
Example
This example adds a plain-text AutoCorrect entry for a common misspelling of the word their.
AutoCorrect.Entries.Add Name:="thier", Value:="their"
See also
AutoCorrectEntries Collection Object
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.