AddMergeRec Method

See Also         Example         Applies To

Adds a MERGEREC field to a mail merge main document. Returns a MailMergeField object. 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.

Syntax

expression.AddMergeRec(Range)

expression   Required. An expression that returns a MailMergeFields object.

Range   Required Range object. The location for the MERGEREC field.