![]() |
#1
|
|||
|
|||
![]()
The mail merge code in the attached file ("Low Risk Recommendations.dotx") works but for some of the fields, it adds two rows into the table with the field names (see the two lines in orange in the file "Low Risk Recommendations.docx" which should not be there).
I have wracked my brain over it but cannot figure it out. Any help will be appreciated. |
#2
|
||||
|
||||
![]()
You're getting the extra rows because you aren't testing whether the 'observation' field is empty before outputting both the header rows and the empty 'observation' data.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]() Quote:
Thank you and best regards. |
#4
|
||||
|
||||
![]()
See attached. Either - or maybe both - of the field constructions in the document might meet your needs.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
Thanks for the reply. Unfortunately, none of the two proposed solutions has worked.
|
#6
|
||||
|
||||
![]()
In what way?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
![]()
Thanks. The line with the field names still appears.
|
#8
|
||||
|
||||
![]()
Is there a reason for doing a Directory/Catalogue merge this way?
Can you post a sample data source (anonymized, of course)?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#9
|
||||
|
||||
![]()
Try the attached.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#10
|
|||
|
|||
![]()
Thanks, I've figured it out. It was a problem with my dataset. I appreciate the time you have spent on this.
|
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Excel/Word Mail Merge - Same Address...different names/Rows | doucecool67 | Mail Merge | 1 | 05-31-2019 03:37 PM |
Mail merge how to link mail merge field value to a column heading | dsummers | Mail Merge | 1 | 05-08-2014 02:59 PM |
Mail merge with Duplicate Names but Different Dollar Amounts | bh24524 | Mail Merge | 27 | 03-24-2014 01:15 PM |
![]() |
redzan | Mail Merge | 1 | 05-16-2013 08:34 AM |
![]() |
richard82 | Mail Merge | 1 | 07-07-2011 11:28 PM |