Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Hi,
Using Windows Xp I have created a mail merge in word from an Excel spreadsheet. I have 5 address columns in my data, but some records only have data in 2 or 3 of these fields. My labels appear with spaces where these fields are empty. How do I close these gaps? Thanks Ben |
#2
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
You can conditionally merge the fields and their associated line breaks eg
{Mergefield Field1}{IF {Mergefield Field2} "" "¶ {Mergefield Field2}"}{IF {Mergefield Field3} "" "¶ {Mergefield Field3}"}{IF {Mergefield Field4} "" "¶ {Mergefield Field2}"}etc Change the field names as appropriate and press the enter key only where you see ¶ -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org "Ben K" Ben wrote in message ... Hi, Using Windows Xp I have created a mail merge in word from an Excel spreadsheet. I have 5 address columns in my data, but some records only have data in 2 or 3 of these fields. My labels appear with spaces where these fields are empty. How do I close these gaps? Thanks Ben |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Word 2007 Mail Merge puts in a space for empty fields from Excel 2 | Mailmerge | |||
Using if fields in mail merge to ignore empty fields | Mailmerge | |||
Empty merge fields come over as 12:00:00 | Mailmerge | |||
Empty Mail Merge Fields | Microsoft Word Help | |||
Empty Mail Merge Fields | Microsoft Word Help |