View Single Post
 
Old 03-04-2022, 06:43 PM
BernieB BernieB is offline Windows 10 Office 2016
Novice
 
Join Date: Mar 2022
Posts: 4
BernieB is on a distinguished road
Default Suppress blank line in mail merge

Hello,

I am using a Directory in Word to generate a document. I am trying to remove the line break if the Address_1 field is empty. I tried using the switch \b but it's not working. Here is the code I used:


{QUOTE{IF{MERGESEQ}=1 {SET Key ""}}"{IF{MERGEFIELD Organization}
<>{REF Key \*MERGEFORMAT} "{IF{MERGESEQ}>1 ""}{QUOTE 12}
{MERGEFIELD Organization}

{MERGEFIELD Name \*MERGEFORMAT}{SET Key{MERGEFIELD Organization}}"
{MERGEFIELD Name}}
{MERGEFIELD Title}
{Address_1 \b}
{Address_2}
{City}, {Province} {Postal_Code}"}


Any help is greatly appreciated!

Thank you,
Bernie
Reply With Quote