Blank lines in mailwerge Word 2007

S

Sue F

Hi
I am doing a merge in Word 2007 on PC.
I want it to ignore a field if blank, however it will only let me replace it with text

Any suggestions?

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
G

Graham Mayor

I don't know what (if any) additional merge tools 2007 provides, but you can
conditionally merge a field

{IF {Mergefield Fieldname} <> "" "{Mergefield Fieldname}"}

or with numeric field you can use a switch to determine what happens -
http://www.gmayor.com/formatting_word_fields.htm

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
L

Linda H

Where is this IF statement in Word 2007?
Linda

Graham Mayor said:
I don't know what (if any) additional merge tools 2007 provides, but you can
conditionally merge a field

{IF {Mergefield Fieldname} <> "" "{Mergefield Fieldname}"}

or with numeric field you can use a switch to determine what happens -
http://www.gmayor.com/formatting_word_fields.htm

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
D

Doug Robbins - Word MVP

On the Insert tab, select the Quick Parts pulldown in the Text chunk and
then select Fields.

Alternatively, use Ctrl+F9 to insert each pair of field delimiters { } and
enter the necessary text inside them. Use Alt+F9 to toggle off the display
of the field codes.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
G

Graham Mayor

No idea, but you can type it from the keyboard using CTRL+F9 for each pair
of field boundaries {} Put the name of your field in place of Fieldname.

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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