Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
micadoodle
 
Posts: n/a
Default blank lines in mail merge directory

I am merging from Excel into MS Word 2003 to create a directory of employees
and their home/work contact info. Where there is no data in Excel, such as
spouse name in the case of an unmarried employee, Word leaves a blank line in
the document. How can I avoid this?
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor
 
Posts: n/a
Default blank lines in mail merge directory

Use conditional fields for the fields that may be blank added to the
previous line eg

{Mergefield somefield}{IF{Mergefield Spouse} "" "
{Mergefield Spouse}"}{IF{Mergefield Someotherfield} "" "
{Mergefield Someotherfield}"}etc

Then the line feed and the field are only entered if they have content.
Insert the field boundaries with CTRL+F9

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


micadoodle wrote:
I am merging from Excel into MS Word 2003 to create a directory of
employees and their home/work contact info. Where there is no data
in Excel, such as spouse name in the case of an unmarried employee,
Word leaves a blank line in the document. How can I avoid this?



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 mail merge should suppress blanks left by blank fields. k2swan Mailmerge 1 November 18th 05 09:41 PM
How to I get Mail Merge to include Address 3 in a directory? The Go-Fer Mailmerge 1 October 20th 05 06:25 PM
Need to Create a Client Directory Mail Merge Document zachmattsmom Mailmerge 1 October 13th 05 09:02 PM
How do I not print blank lines in a mail merge document when the . Matthew Mailmerge 1 March 22nd 05 09:31 PM
How to omit blank lines in mail merge SandieBch Microsoft Word Help 2 December 16th 04 08:05 AM


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