MailMergeFields.AddMergeRec (Word)

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

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

AddMergeRec (Range)

Range: The location for the MERGEREC field.


Dim rngTemp As Range 
 
Set rngTemp = ActiveDocument.Range(Start:=0, End:=0) 
 
ActiveDocument.MailMerge.Fields.AddMergeRec Range:=rngTemp 
rngTemp.InsertAfter "Record Number: "