Edit

Share via


MailMergeFields.AddMergeSeq(Range) Method

Definition

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

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

Parameters

Range
Range

Required Range object. The location for the MERGESEQ field.

Returns

Remarks

A MERGESEQ field inserts a number based on the sequence in which data records are merged (for example, when record 50 of records 50 to 100 is merged, MERGESEQ inserts the number 1).

Applies to