![]() |
#1
|
|||
|
|||
![]()
Hey, I'm not sure if there is a solution to this, but is there any way to keep mail merge from striping out all my codes? I have a program that runs mail merge on a document, entering information in various fields, but then I have other form codes throughout the document that need to have information added after the original mail merge runs. The problem is that when mail merge runs the first time, it strips the code out from all the fields.
For example: I work for a medical company. We enter the patient information into our program and run it. The program enters in the patient info into a .doc file that we use as a template. In the footer of this document I have a field code that puts a "Continued..." on the end of every page but the last page. When the mail merge runs and enters in the patient info in the document, it then strips out the codes and my "Continued..." becomes plain text and shows up on the last page. Any ideas? |
#2
|
||||
|
||||
![]()
Hi MedievalGuy,
The stripping is cause by the fact that your 'Continued' field uses an IF statement. Since IF fields in mailmerges get resolved and converted to the text equivalents of their true/false evaluations, you can’t use them to vary the text in the header or footer of a mailmerge document. Here’s some workarounds for displaying 'Continued Next Page' type messages on all but the last page in each Section of a mailmerge output file: {={SECTIONPAGES}-{PAGE} \# "'Continued Next Page';;"} to generate 'Continued Next Page', or: {={SECTIONPAGES}-{PAGE} \# "'Continued on Page {={PAGE}+1}';;"} to generate a 'Continued on Page #' message. Modify/adapt to suit your needs. Note: After merging to a new document, you may need to do a print preview before the 'Continued Next Page' message appears.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
mikeprent | Mail Merge | 5 | 01-05-2012 04:52 AM |
Convert LISTNUM field codes to text | remedios43 | Word | 2 | 07-31-2011 09:21 AM |
![]() |
Caroline | Mail Merge | 5 | 04-11-2011 04:17 PM |
![]() |
BluRay | Mail Merge | 5 | 03-29-2011 01:06 AM |
![]() |
vandy | Word | 1 | 09-23-2009 11:32 AM |