Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Promo Promo is offline
external usenet poster
 
Posts: 1
Default Blank Fields in Word 2007 Merge

Hi there,

When merging data from Excel 2007 into a document in Word 2007, some of the
fields are blank,... I want to remove the blanks and move the rest of the
info up.
I am doing addresses and sopme addresses are over 4 lines and others over
5,... we don't want a space if there is no data in line 4 (for example)
Help..... Thanks
  #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 Blank Fields in Word 2007 Merge

You need to use an If...then...Else field construction

{ IF { MERGEFIELD mergefieldthatmightbeblank } "" "{ MERGEFIELD
mergefieldthatmightbeblank }¶
{ MERGEFIELD mergefieldthatcomesaftermergefieldthat mightbeblank }" "{
MERGEFIELD mergefieldthatcomesaftermergefieldthat mightbeblank }" }

You must use Ctrl+F9 to insert each pair of field delimiters { } and where ¶
appears in the above, press the Enter key. 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

"Promo" wrote in message
...
Hi there,

When merging data from Excel 2007 into a document in Word 2007, some of
the
fields are blank,... I want to remove the blanks and move the rest of the
info up.
I am doing addresses and sopme addresses are over 4 lines and others over
5,... we don't want a space if there is no data in line 4 (for example)
Help..... Thanks



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
Word 2007 Mail Merge Labels skips fields using update fields Dianne Griffin Mailmerge 3 August 8th 08 03:59 PM
Word 2007 Blank fields Andrew Kennard[_2_] Mailmerge 4 September 19th 07 03:48 PM
How can I insert a placeholder for blank Word merge fields? DJ Mailmerge 1 March 15th 06 05:48 PM
Word mail merge should suppress blanks left by blank fields. k2swan Mailmerge 1 November 18th 05 09:41 PM
How to supress blank merge fields in Word 2002 DiTab1 Microsoft Word Help 9 November 10th 05 04:56 PM


All times are GMT +1. The time now is 02:43 PM.

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"