Partager via


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

Concepts

AutoCorrectEntries Collection Object

AutoCorrectEntries Object Members