Removing blank lines because of MERGEFIELD

  • Thread starter Thread starter Dave Elsen
  • Start date Start date
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.
 
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
 
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
 
Back
Top