Share via


AutoCorrectEntries.Add Method

Word Developer Reference

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.

Visual Basic for Applications
  AutoCorrect.Entries.Add Name:="thier", Value:="their"

See Also