Edit

Share via


MailMergeFields.AddMergeRec(Range) Method

Definition

Adds a MERGEREC field to a mail merge main document. Returns a MailMergeField object.

public:
 Microsoft::Office::Interop::Word::MailMergeField ^ AddMergeRec(Microsoft::Office::Interop::Word::Range ^ Range);
public Microsoft.Office.Interop.Word.MailMergeField AddMergeRec (Microsoft.Office.Interop.Word.Range Range);
abstract member AddMergeRec : Microsoft.Office.Interop.Word.Range -> Microsoft.Office.Interop.Word.MailMergeField
Public Function AddMergeRec (Range As Range) As MailMergeField

Parameters

Range
Range

Required Range object. The location for the MERGEREC field.

Returns

Remarks

A MERGEREC field inserts the number of the current data record (the position of the data record in the current query result) during a mail merge.

Applies to