Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Night Owl Night Owl is offline
external usenet poster
 
Posts: 2
Default Mailmerge for Excel Data

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

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Mailmerge for Excel Data

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 \# "#;;;"}


--

Graham Mayor - Word MVP

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


Night Owl wrote:
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



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Mailmerge for Excel Data

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

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

"Night Owl" wrote in message
...
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



  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Night Owl Night Owl is offline
external usenet poster
 
Posts: 2
Default Mailmerge for Excel Data

Thanks guys. I'll give them a go over the weekend.

Best regards,

Pete

"Doug Robbins - Word MVP" wrote in message
...
{ 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.

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

"Night Owl" wrote in message
...
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




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
Excel data formatting change on Mailmerge watchtower Mailmerge 1 January 9th 07 03:35 PM
Excel Data to MailMerge mully Mailmerge 2 December 22nd 05 08:48 AM
Excel as mailmerge data source Mary Ann Mailmerge 2 December 6th 05 06:10 PM
Excel mailmerge data lost PhilT Mailmerge 1 December 5th 05 02:41 PM
Mailmerge on word using excel data RJP Mailmerge 4 April 11th 05 08:29 AM


All times are GMT +1. The time now is 04:37 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"