Help!

Mailmerge lables - rogue space when there's no title (Mr, ..

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> MailMerge Fields RSS
Next:  Journal question  
Author Message
Chris Hughes
External


Since: May 15, 2007
Posts: 3



PostPosted: Thu Sep 17, 2009 3:42 am    Post subject: Mailmerge lables - rogue space when there's no title (Mr, etc)
Archived from groups: microsoft>public>word>mailmerge>fields (more info?)

Most of my contacts don't have titles (Mr, Mrs, etc).
In the Create Labels box, in the first line, I insert merge fields as so:
title, [space], firstName, [space], surName.
The problem then is that when there's no title, the first line begins with a
space. I tried adding a space after the title in the data source (Excell),
but the mailmerge ignores it.
I'm using Office 2000.
Back to top
Graham Mayor
External


Since: Jul 04, 2006
Posts: 4676



PostPosted: Thu Sep 17, 2009 8:10 am    Post subject: Re: Mailmerge lables - rogue space when there's no title (Mr, etc) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Conditionally insert the title and the trailing space e.g.

{ IF{ Mergefield Title} <> "" "{ Mergefield Title } " }{ Mergefield Name }

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

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


Chris Hughes wrote:
> Most of my contacts don't have titles (Mr, Mrs, etc).
> In the Create Labels box, in the first line, I insert merge fields as
> so: title, [space], firstName, [space], surName.
> The problem then is that when there's no title, the first line begins
> with a space. I tried adding a space after the title in the data
> source (Excell), but the mailmerge ignores it.
> I'm using Office 2000.
Back to top
Chris Hughes
External


Since: May 15, 2007
Posts: 3



PostPosted: Thu Sep 17, 2009 8:10 am    Post subject: Re: Mailmerge lables - rogue space when there's no title (Mr, etc) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for that, Graham. Sorry, but I don't know coding. Tried copying and
pasting your code - didn't work!
Back to top
Graham Mayor
External


Since: Jul 04, 2006
Posts: 4676



PostPosted: Fri Sep 18, 2009 1:10 am    Post subject: Re: Mailmerge lables - rogue space when there's no title (Mr, etc) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You cannot copy fields from plain text to Word. You must build the field in
Word using CTRL+F9 for each bracket pair and use the exact field name(s)
from your data source.
See also http://www.gmayor.com/formatting_word_fields.htm
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

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


Chris Hughes wrote:
> Thanks for that, Graham. Sorry, but I don't know coding. Tried
> copying and pasting your code - didn't work!
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> MailMerge Fields All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum