MailMergeFields.Add Method

Returns a MailMergeField object that represents a mail merge field added to the data source document.

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

Syntax

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

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

Parameters

  • Name
    Type: System.String
    Required String. The name of the field.

Return Value

Type: Microsoft.Office.Interop.Word.MailMergeField

See Also

Reference

MailMergeFields Interface

MailMergeFields Members

Microsoft.Office.Interop.Word Namespace