Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / March 2007

Tip: Looking for answers? Try searching our database.

Mailmerge for Excel Data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Night Owl - 04 Mar 2007 13:16 GMT
Will someone tell me, please, how I can suppress (or hide) fields in a Word
mailmerge document that have a value of 0 (Zero).

I'm using Office 2002 SP 3 on a Vista Premium desktop PC.

It's a bit naff sending a letter to someone with a 0 in a blank line in the
middle of their address!

I do  need to use Excel for the data base.

Thank you,

Pete
Graham Mayor - 04 Mar 2007 13:32 GMT
If you are sure that the merge field produces 0 when empty, you can trap
that with a conditional field

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

If it is supposed to be a numeric field you can use a number switch instead
eg
{Mergefield Fieldname \# "#;;;"}

Signature

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

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

> Will someone tell me, please, how I can suppress (or hide) fields in
> a Word mailmerge document that have a value of 0 (Zero).
[quoted text clipped - 9 lines]
>
> Pete
Doug Robbins - Word MVP - 04 Mar 2007 13:34 GMT
{ IF { MERGEFIELD fieldthatmightbezero } = 0 "{ MERGEFIELD
fieldthatcomesafterthefieldthatmightbezero }" "{ MERGEFIELD
fieldthatmightbezero }[Space/Carriage Return]{ MERGEFIELD
fieldthatcomesafterthefieldthatmightbezero }" }

You must use Ctrl+F9 to insert each pair of field delimiters { } and use
Alt+F9 to toggle off their display

replace [Space/Carriage Return] with whatever suits your fancy.

Signature

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

> Will someone tell me, please, how I can suppress (or hide) fields in a
> Word mailmerge document that have a value of 0 (Zero).
[quoted text clipped - 9 lines]
>
> Pete
Night Owl - 09 Mar 2007 08:00 GMT
Thanks guys.  I'll give them a go over the weekend.

Best regards,

Pete

>{ IF { MERGEFIELD fieldthatmightbezero } = 0 "{ MERGEFIELD
>fieldthatcomesafterthefieldthatmightbezero }" "{ MERGEFIELD
[quoted text clipped - 19 lines]
>>
>> Pete

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.