AutoCorrectEntries.Add Method

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

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

Syntax

'Declaration
Function Add ( _
    Name As String, _
    Value As String _
) As AutoCorrectEntry
'Usage
Dim instance As AutoCorrectEntries
Dim Name As String
Dim Value As String
Dim returnValue As AutoCorrectEntry

returnValue = instance.Add(Name, Value)
AutoCorrectEntry Add(
    string Name,
    string Value
)

Parameters

  • Name
    Type: System.String
    The text you want to have automatically inserted whenever the text specified by Name is typed.
  • Value
    Type: System.String
    The text you want to have automatically replaced with the text specified by Value.

Return Value

Type: Microsoft.Office.Interop.Word.AutoCorrectEntry

See Also

Reference

AutoCorrectEntries Interface

AutoCorrectEntries Members

Microsoft.Office.Interop.Word Namespace