MailMergeFields.AddMergeRec(Range) 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);
Parameters
Range
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