The information in this article applies to:
SYMPTOMS
When you perform a mail merge operation using a main document that contains
a NUMPAGES field, the number "1" appears in the merged documents,
regardless of how many pages there are in the main document.
WORKAROUNDTo work around this behavior, use one of the following methods. Method 1: Change the NUMPAGES Field to Text in Your Main DocumentUse this workaround if all your merged documents contain the same number of pages. This workaround is inappropriate if the number of pages in your merged document varies from record to record.Before you perform the mail merge operation, change the NUMPAGES field to text in your main document by selecting the field, pressing F9 to update the field, and then pressing CTRL+SHIFT+F9 to change the result of the field to text. Method 2: Use a PAGEREF Field That References a BookmarkIn place of the NUMPAGES field, use a PAGEREF field that references a bookmark inserted at the end of your main document. To do this, position the insertion point at the end of your document and click Bookmark on the Insert menu. Type "MergedNumber" (without the quotation marks) in the Bookmark Name box and click the Add or OK button. In place of the NUMPAGES field, insert the following field:{PAGEREF MergedNumber}NOTE: This workaround provides incorrect PAGEREF field results if you use the Merge To New Document option when you perform the print merge operation. It only works if you use the Merge To Printer option. STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Word 98 Macintosh Edition. MORE INFORMATION
By design, Word does not insert the NUMPAGES field in merged documents
because the field result would reflect the total pages in the merged
document instead of the total pages for each record. Therefore, the
NUMPAGES field is often inappropriate for print merge main documents.
REFERENCES"Microsoft Word for Windows User's Guide," version 2.0, pages 637-639 Additional query words: winword2 wrong unlink
Keywords : kbdta kbmerge |
Last Reviewed: January 3, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |