Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Llawler Llawler is offline
external usenet poster
 
Posts: 3
Default How do I code an If Then Else field when...

I'm trying to create address labels through a mail merge and move up
remaining lines if a data field is blank.

For example: Some of the addresses do not include an organization name. If
this is the case, an awkward blank line is left between the name and the
street address.

How do I code it so that the lines move up if the organization field is blank?
  #2   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 How do I code an If Then Else field when...

{ IF { MERGEFIELD Organization }= "" "{ MERGEFIELD Address }" "{ MERGEFIELD
Organization }[line feed]{ MERGEFIELD Address }" }

Use Shift+Enter where [line feed] appears in this 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

"Llawler" wrote in message
...
I'm trying to create address labels through a mail merge and move up
remaining lines if a data field is blank.

For example: Some of the addresses do not include an organization name. If
this is the case, an awkward blank line is left between the name and the
street address.

How do I code it so that the lines move up if the organization field is
blank?



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Llawler Llawler is offline
external usenet poster
 
Posts: 3
Default How do I code an If Then Else field when...

Thanks for the code, Doug. I thought I knew where it goes, but I'm lost.

Thanks.

"Doug Robbins - Word MVP" wrote:

{ IF { MERGEFIELD Organization }= "" "{ MERGEFIELD Address }" "{ MERGEFIELD
Organization }[line feed]{ MERGEFIELD Address }" }

Use Shift+Enter where [line feed] appears in this 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

"Llawler" wrote in message
...
I'm trying to create address labels through a mail merge and move up
remaining lines if a data field is blank.

For example: Some of the addresses do not include an organization name. If
this is the case, an awkward blank line is left between the name and the
street address.

How do I code it so that the lines move up if the organization field is
blank?




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
Can I format zip code merge field to add hyphen if zip plus 4? ShaniraW Mailmerge 1 March 7th 06 07:36 PM
Enter text in a field and have it appear as entered elsewhere Gregory Winters Microsoft Word Help 6 November 1st 05 02:09 AM
Print field code shading Jules Microsoft Word Help 0 October 11th 05 06:29 AM
How do I replace one character with another in the field code resu AWordInNeed Mailmerge 1 August 30th 05 08:14 PM
Incrementing field code MikeC Mailmerge 4 March 12th 05 05:00 PM


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