Suppress Lines

A

Ali

How do I suppress lines not being used in an address?

Name
Organization
Address
City, ST Zip

If there is no organization, I want the lines to move up, not show a blank
line.
 
G

Graham Mayor

Probably the simplest method is to insert the fields individually and use a
conditional field to insert the line feed and the organization field when
there is content in it eg

{Mergefield Name}{IF {Mergefield Organization} <> "" "
{Mergefield Organization}"}
{Mergefield Address}
etc


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
M

Mike Dalton

Try
Tools > MailMerge > Merge > Select 'Don't print blank lines when fields are empty'
Good luck
 
G

Graham Mayor

But don't be too surprised when it doesn't work .

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
N

nettedavid

Tools > Mail Merge > Suppress blank lines worked in older versions of Word.
Word 2003 doesn't have that option anymore - what a pain!!
 
P

Peter Jamieson

Word 2003 still suppresses blank lines by default, but
a. not if the merge fields nested inside another field such as { IF } or
{ INCLUDETEXT } - a significant and irritating change, and of course when
something like that has changed, it's difficult to know exactly what
/has/changed, which I suspect is the point of Graham's remark.
b. the option to switch the facility off (and on again) in no longer part
of the standard user interface. You can can back the old interface by
dragging Tools|Customize|"category All Commands"|MailMergeHelper to a
toolbar, or you can use a macro such as

Sub SuppressBlankLines()
' switch on blank line suppression
ActiveDocument.MailMerge.SuppressBlankLines := True
End Sub

c. the circumstances in which Word suppresses blank lines has always been
rather odd. It doesn't suppress any old blank line - it only suppresses
lines that are blank because they are blank, /and/ they have a non-nested
MERGEFIELD field whose result is blank. Blankness created in other ways
isn't enough :) Actually my memory on this one is slipping, but that's the
gist of it.

Peter Jamieson
 

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