Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Dave the elder
 
Posts: n/a
Default How do I add conditional labels in a mail merge?

I am printing labels to go into an address book. These labels contain phone
numbers and where a particular phone number exists, I would like the
appropriate label to print with the number (i.e., Home Phone, Cell Phone,
etc.) Can I do this in Word using a mail merge?
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Cindy M -WordMVP-
 
Posts: n/a
Default How do I add conditional labels in a mail merge?

Hi ?B?RGF2ZSB0aGUgZWxkZXI=?=,

I am printing labels to go into an address book. These labels contain phone
numbers and where a particular phone number exists, I would like the
appropriate label to print with the number (i.e., Home Phone, Cell Phone,
etc.) Can I do this in Word using a mail merge?

If I'm following you correctly, this is probably possible, although it may be a
bit tricky to set up. With which version of Word are we dealing?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
 
Posts: n/a
Default How do I add conditional labels in a mail merge?

Use an If...then...Else field construction.

{ IF { MERGEFIELD HomePhone } "" "Home Phone: { MERGEFIELD HomePhone }"
"" }

Similarly for the other possibilities, though you may end up with blank
lines where one is not used. Such blank lines can be avoided with a more
complex (it gets quite a bit more complex) field construction.

--
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

"Dave the elder" Dave the wrote in message
...
I am printing labels to go into an address book. These labels contain
phone
numbers and where a particular phone number exists, I would like the
appropriate label to print with the number (i.e., Home Phone, Cell Phone,
etc.) Can I do this in Word using a mail merge?



  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor
 
Posts: n/a
Default How do I add conditional labels in a mail merge?

You shouldn't end up with blank lines provided you put the quotes in the
right place. Something like:

{Mergefield Last addressline}{IF{Mergefield HomePhone} "" "
Home Phone: {Mergefield HomePhone}"}{IF{Mergefield CellPhone} "" "
Cell Phone: {Mergefield CellPhone}"}{IF {Mergefield HomeFax} "" "
Home Fax: {Mergefield Homefax}"}etc

ie the condtion inserts the line feed *and* the field with its associated
text.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Doug Robbins - Word MVP wrote:
Use an If...then...Else field construction.

{ IF { MERGEFIELD HomePhone } "" "Home Phone: { MERGEFIELD
HomePhone }" "" }

Similarly for the other possibilities, though you may end up with
blank lines where one is not used. Such blank lines can be avoided
with a more complex (it gets quite a bit more complex) field
construction.

"Dave the elder" Dave the wrote in
message ...
I am printing labels to go into an address book. These labels
contain phone
numbers and where a particular phone number exists, I would like the
appropriate label to print with the number (i.e., Home Phone, Cell
Phone, etc.) Can I do this in Word using a mail merge?



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge Word 2003 Issue S.Nicks Mailmerge 5 February 20th 09 01:55 AM
Mail Merge from Excel - conditional field choice? Gordon Smith \(eMVP\) Mailmerge 1 December 13th 05 05:18 AM
30 page mail merge labels only prints one page? bdhamer Mailmerge 2 October 13th 05 05:07 AM
Creating mailing labels with the Mail Merge Helper Stephen White New Users 1 April 5th 05 02:25 PM
Why can't I use Mail Merge Wizard with Avery 2160 labels?. Andy39 Mailmerge 1 December 10th 04 02:19 AM


All times are GMT +1. The time now is 10:45 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"