View Single Post
  #2   Report Post  
Posted to microsoft.public.word.newusers
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default IF/THEN/ELSE adds a blank line in mail merge WORD 2007

Make the line break part of your TrueText (note that you don't have to
include FalseText if it's "nothing"). So you'll have:

{I F { MERGEFIELD fName } { MERGEFIELD nName } "{ MERGEFIELD nName }
" }

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

"gabo" wrote in message
...
Hello,

I need to merge some mailings based on if the first name is not the
same as nickname, print nickname else don't print anything and go to
the next field. The code I have is:

{IF {MERGEFIELD fName} {MERGEFIELD nName} {MERGEFIELD nName} ""}


What is happening is if the first name and nickname are the same a
blank line appears. How do I supress the blank line?