A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

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 » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

using word 2007 suppress blank line when merge field is empty



 
 
Thread Tools Display Modes
  #1  
Old June 16th 08, 06:41 PM posted to microsoft.public.word.mailmerge.fields
Shelly
external usenet poster
 
Posts: 26
Default using word 2007 suppress blank line when merge field is empty

Eg.
Not all records have an address2, need to skip blank line when this happens.
Ads
  #2  
Old June 16th 08, 08:18 PM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,832
Default using word 2007 suppress blank line when merge field is empty

Use an If...then...Else field construction

{ IF { MERGEFIELD Address2 } = "" "{ MERGEFIELD City }, { MERGEFIELD State }
{ MERGEFIELD Zip }" "{ MERGEFIELD Address2 }[Enter]"{ MERGEFIELD City }, {
MERGEFIELD State } { MERGEFIELD Zip }" }

You must use Ctrl+F9 to insert each pair of field delimiters { } and use
Alt+F9 to toggle off their display. Insert a carriage return in the field
construction in place of the [Enter]

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

"Shelly" wrote in message
...
Eg.
Not all records have an address2, need to skip blank line when this
happens.



 




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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mergefield suppress if data field blank JB reluctantly from WP Mailmerge 13 February 24th 09 02:36 AM
Word 2007 Address Block and Suppress Blank Lines JohnH Mailmerge 9 December 14th 07 12:15 PM
How do you suppress a line in word if merge fld is blank? Todd Mailmerge 6 July 21st 05 06:22 AM
line feed when merge field is blank Bev Mailmerge 1 March 22nd 05 09:31 PM
How do I add a space in a line if a merge field is blank? S Cocke Mailmerge 4 February 11th 05 11:13 PM


All times are GMT +1. The time now is 06:07 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004-2019 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.