Group:  Microsoft Word ยป microsoft.public.word.mailmerge.fields
Thread: Word Mail Merge From Excel Data

Geek News

Word Mail Merge From Excel Data
richge 10/8/2008 12:43:00 PM
I'm doing a mail merge in Word with Data from an Excel spreadsheet. When the
Excel cells are blank, I don't want the blank spaces to appear in the Word
Mail Merge. Is there a way to prevent the blank spaces from showing in the
Word doc?
Re: Word Mail Merge From Excel Data
"Graham Mayor" <gmayor[ at ]REMOVETHISmvps.org> 10/8/2008 2:18:25 PM
You can conditionally insert the merge fields eg

{Mergefield Field1}{{If {Mergefield Field2} <> "" "
{Mergefield Field2}"}

This will insert

Field1

if there is nothing in Field2
and

Field1
Field2

If Field 2 has content.


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

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

richge wrote:
[Quoted Text]
> I'm doing a mail merge in Word with Data from an Excel spreadsheet.
> When the Excel cells are blank, I don't want the blank spaces to
> appear in the Word Mail Merge. Is there a way to prevent the blank
> spaces from showing in the Word doc?


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net