Microsoft KB Archive/211656

= WD2000: Using MergeRec to Number Mail Merge Records =

Article ID: 211656

Article Last Modified on 12/6/2000

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition

-



This article was previously published under Q211656





SUMMARY
The MERGEREC field can be used to automatically number the records in a Microsoft Word mail merge document.



MORE INFORMATION
You can use the MERGEREC field in the main document of a mail merge in Word to automatically indicate which record is being merged. This field is updated during the mail merge and inserts the number of the current record into the merged document.

To use the MERGEREC field, use one of the following methods:

Method 1: Use Insert Word Field
When you are inserting your mail merge merge fields, do the following steps:
 * 1) In your mail merge main document, position the insertion point where you want the record number to appear.
 * 2) On the Mail Merge toolbar, click Insert Word Field.
 * 3) Click to select Merge Record #.

NOTE: If you are using labels for your mail merge, be sure to insert the Merge Record # field on each label on which you want a record number to appear.

Method 2: Insert the MERGEREC Field Manually
 Press CTRL+F9 to insert field braces ('{}') in your mail merge main document where you want the merged record number to appear. Type the word MERGEREC. (This is not case sensitive.) Your MERGEREC field should be similar to the following:

{MERGEREC}

NOTE: If you are using labels for your mail merge, be sure to insert the Merge Record # field on each label on which you want a record number to appear.

 Perform the mail merge as usual.

NOTE: If you are merging multiple records into a table (for example, to print labels), be sure to place a MERGEREC field in each cell of the table following the NEXT or NEXTIF field. The NEXT or NEXTIF field will increment the result of the MERGEREC field and number each record in the table.

