A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how do i remove blank lines in mail merge address labels



 
 
Thread Tools Display Modes
  #1  
Old April 27th, 2010, 07:42 PM posted to microsoft.public.word.mailmerge.fields
jflowers
external usenet poster
 
Posts: 1
Default how do i remove blank lines in mail merge address labels

I am using word 2003 to do a address labels using mail merge. My data source
is in an excel spread sheet. The problem is that some of the addresses
contain a 2nd line for apt# and some don't? when the merge is complete it
leaves blank lines if there is noothing in the field. How can I get the merge
to reconize that is a field is empty and does not need a space?
  #2  
Old April 27th, 2010, 10:43 PM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default how do i remove blank lines in mail merge address labels

Use an If...then...Else field construction, using Ctrl+F9 to insert each
pair of field delimiters

{ IF { MERGEFIELD Address2 } = "" "{ MERGEFIELD Address1 }" "{ MERGEFIELD
Address1 }¶
{ MERGEFIELD Address2 }" }

where the ¶ appears in the above, press Enter or Shift +Enter

Use Alt+F9 to toggle off the display of the field codes.

--
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, originally posted via msnews.microsoft.com

"jflowers" wrote in message
...
I am using word 2003 to do a address labels using mail merge. My data
source
is in an excel spread sheet. The problem is that some of the addresses
contain a 2nd line for apt# and some don't? when the merge is complete it
leaves blank lines if there is noothing in the field. How can I get the
merge
to reconize that is a field is empty and does not need a space?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:58 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.