AutoTextEntries.Add Method

Adds an AutoText entry to the list of available AutoText entries.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function Add ( _
    Name As String, _
    Range As Range _
) As AutoTextEntry
'Usage
Dim instance As AutoTextEntries
Dim Name As String
Dim Range As Range
Dim returnValue As AutoTextEntry

returnValue = instance.Add(Name, Range)
AutoTextEntry Add(
    string Name,
    Range Range
)

Parameters

  • Name
    Type: System.String
    A range of text that will be inserted whenever Name is typed.

Return Value

Type: Microsoft.Office.Interop.Word.AutoTextEntry

See Also

Reference

AutoTextEntries Interface

AutoTextEntries Members

Microsoft.Office.Interop.Word Namespace