WD: Using MERGEREC to Number Mail Merge Records

Last reviewed: February 2, 1998
Article ID: Q71829
The information in this article applies to:
  • Microsoft Word for Windows, versions 1.0, 1.1, 1.1a
  • Microsoft Word for Windows, versions 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, versions 7.0, 7.0a
  • Microsoft Word 97 for Windows
  • Microsoft Word 98 Macintosh Edition
  • Microsoft Word for the Macintosh, versions 6.0, 6.0.1, 6.0.1a

SUMMARY

The MERGEREC field can be used to automatically number the records in a Word for Windows print merge document.

MORE INFORMATION

The MERGEREC field can be used 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:

  1. Press CTRL+F9 (Windows) or COMMAND+F9 (Macintosh) to insert field braces {} in the main document where the merged record number is to be placed.

  2. Type the word MERGEREC. (This is not case sensitive.)

  3. Perform the mail merge as usual.

Note: If you are merging multiple records into a table (for example, to print labels) a MERGEREC field should be placed 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

"Microsoft Word for Windows User's Reference," page 102.

"Microsoft Word for Windows Technical Reference," page 173.

"Microsoft Word for Windows and OS/2 Technical Reference," page 364.


Additional query words: 8.0
Keywords : kbfield kbmerge macword winword winword2 word6 word7 word8 word95 word97 kbualink97
Version : WINDOWS:1.0,1.1,1.1a,2.0,2.0a,2.0a- CD,2.0b,2.0c,6.0,6.0a,6.0c,7.0,7.a,97;MACINTOSH:6.0,6.0.1,6.0.1a,98
Platform : MACINTOSH WINDOWS
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 2, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.