Removing blank lines because of MERGEFIELD

D

Dave Elsen

We send out several letters to students per day. In those letters there are
spots where we add different text based upon some sort of status, residency
for example.

So using a {IF {MERGEFIELD Residency_Status = "Non-Resident" "Special Text
goes here" ""} format we get what we want. Unfortunately if the condition is
not met then nothing is printed, BUT there is still a big chunk of white
space left for the text even though nothing is printed in that space. This
makes the letter look a little funny and unprofessional.

How can I get that blank white space area to go away if the criteria is not
met. We are using Microsoft Office Word 2003. Thank you.
 
S

Suzanne S. Barnhill

Include the line break in your TrueText; then you won't get a line break
(and hence no blank line) unless the TrueText prints.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
D

Dave Elsen

Thank you very much. That worked fine. I found out I also had a blank line
before the {IF {MERGEFIELD..... part. So that added to it also. Another happy
customer!
--
Dave Elsen - UIC


Suzanne S. Barnhill said:
Include the line break in your TrueText; then you won't get a line break
(and hence no blank line) unless the TrueText prints.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top