- Print
- DarkLight
- PDF
How do you suppress blank lines in a merge document?
Article summary
Did you find this summary helpful?
Thank you for your feedback
After merging my letters in Word, blank lines are appearing when there is no information is display. How can I remove these?
Answer:
When merging a document, Word may not suppress blank lines, for example, in the address block. You can change the coding for the fields to suppress the blank lines.
{MERGEFIELD Organization }{MERGEFIELD Name \b "
" }{MERGEFIELD Title \b "
" }{MERGEFIELD Address 1 \b "
" }{MERGEFIELD Address 2 \b "
" }{MERGEFIELD CityStZip \b "
" }The \b will insert a carriage return before the merge field if the field is not blank. Alternatively, you could use a \f. The \f will place a carriage return after the merge field, if it is not blank.
- Run all of the merge fields together (no spaces or carriage returns between them).
- Toggle on the field codes by using Alt+F9.
- After the second merge field, place a "\b "
" ". The merge field should then look like this {MERGEFIELD Data \b "ΒΆ "} The full address block will then look like this:
{MERGEFIELD Organization }{MERGEFIELD Name \b "
" }{MERGEFIELD Title \b "
" }{MERGEFIELD Address 1 \b "
" }{MERGEFIELD Address 2 \b "
" }{MERGEFIELD CityStZip \b "
" }
Was this article helpful?