Add Method (AutoTextEntries Collection)

Applies To

AutoTextEntries collection object.

Description

Adds an AutoText entry to the list of available entries.

Syntax

expression.Add(Name, Range)

expression Required. An expression that returns an AutoTextEntries object.

Name Required String. The text that, when typed, initiates an AutoText entry.

Range Required Range. A range of text that will be inserted whenever Name is typed.

See Also

AppendToSpike method.

Example

This example adds an AutoText entry named "MyText" that contains the text in the selection.

NormalTemplate.AutoTextEntries.Add Name:= "MyText", _
    Range:= Selection.Range