Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Some addresses need only one line before the city and state, that is, they
only need an Address 1 field. Other addresses require two or even three lines so I have had to create an Address 2 and an Address 3 field. Unfortunately, this means that when an address that has no data in Address 2 or Address 3 prints, the program leaves two blank lines between the Address 1 line and the City/State line. Is there anyway to avoid the blanks lines so that the City/State line will appear directly under the Address 1 line if there is no data in Address 2 and 3? |
#2
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Hi Geo 4,
In Word: .. duplicate the mailmerge field for the line to be suppressed when there are no data (eg «MyData») so that you get «MyData»«MyData»; .. select both fields and Press Ctrl-F9 to enclose them in a new field, thus { «MyData»«MyData» }; .. fill in between the braces so that you end up with {IF«myData»= "" "" "«MyData»¶ "}, where the '¶' is a paragraph mark or line-feed, depending on which you're using; .. delete the existing paragraph mark or line-feed after the field; .. position the cursor anywhere in this field and press F9 to update it; .. run your mailmerge. -- Cheers macropod [Microsoft MVP - Word] "Geo 4" Geo wrote in message ... Some addresses need only one line before the city and state, that is, they only need an Address 1 field. Other addresses require two or even three lines so I have had to create an Address 2 and an Address 3 field. Unfortunately, this means that when an address that has no data in Address 2 or Address 3 prints, the program leaves two blank lines between the Address 1 line and the City/State line. Is there anyway to avoid the blanks lines so that the City/State line will appear directly under the Address 1 line if there is no data in Address 2 and 3? |
#3
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Thanks macropod. Your solution worked well.
Geo 4 "macropod" wrote: Hi Geo 4, In Word: .. duplicate the mailmerge field for the line to be suppressed when there are no data (eg «MyData») so that you get «MyData»«MyData»; .. select both fields and Press Ctrl-F9 to enclose them in a new field, thus { «MyData»«MyData» }; .. fill in between the braces so that you end up with {IF«myData»= "" "" "«MyData»¶ "}, where the '¶' is a paragraph mark or line-feed, depending on which you're using; .. delete the existing paragraph mark or line-feed after the field; .. position the cursor anywhere in this field and press F9 to update it; .. run your mailmerge. -- Cheers macropod [Microsoft MVP - Word] "Geo 4" Geo wrote in message ... Some addresses need only one line before the city and state, that is, they only need an Address 1 field. Other addresses require two or even three lines so I have had to create an Address 2 and an Address 3 field. Unfortunately, this means that when an address that has no data in Address 2 or Address 3 prints, the program leaves two blank lines between the Address 1 line and the City/State line. Is there anyway to avoid the blanks lines so that the City/State line will appear directly under the Address 1 line if there is no data in Address 2 and 3? |
#4
![]() |
|||
|
|||
![]()
Hi everyone,
sorry for digging this post, but i found it when i was trying to resolve the same thing, but when i use this, i no longer can see the fields when i'm preparing the document. Any ideas? I'm using Word 2010. Thanks, Quote:
|
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
using word 2007 suppress blank line when merge field is empty | Mailmerge | |||
In Word 2003 when mail merge how do I delete an empty field? | Mailmerge | |||
How do I avoid printing blank lines using mail merge in Word 2003. | Mailmerge | |||
line feed when merge field is blank | Mailmerge | |||
Word 2002 Mail Merge - merging to new doc displays blank empty dia | Mailmerge |