WD2000: Using MergeRec to Number Mail Merge Records (211656)



The information in this article applies to:

  • Microsoft Word 2000

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

  1. Press CTRL+F9 to insert field braces ({}) in your mail merge main document where you want the merged record number to appear.
  2. 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.

  3. 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.

REFERENCES

For more information about using the NEXT field, click Microsoft Word Help on the Help menu, type NEXT in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

For more information about using the NEXTIF field, click Microsoft Word Help on the Help menu, type NEXTIF in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.

Modification Type:MajorLast Reviewed:12/6/2000
Keywords:kbfield kbinfo kbmerge KB211656