Add Method (AutoCorrectEntries Collection)

Applies To

AutoCorrectEntries collection object.

Description

Adds a plain-text AutoCorrect entry to the list of available entries.

Syntax

expression.Add(Name, Value)

expression Required. An expression that returns an AutoCorrectEntries object.

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.

See Also

AddRichText method, Apply method, AutoCorrect property.

Example

This example adds a plain-text AutoCorrect entry for a common misspelling of the word "their."

AutoCorrect.Entries.Add Name:= "thier", Value:= "their"