Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Peter is offline
external usenet poster
 
Posts: 111
Default Two blank spaces replace missing middle name- how to correct?

I'm running Outlook and Word 2003 SP3 under Windows XP Pro SP2. I wish to
perform a "mail merge" using entries from my Outlook Contacts file as input
into a Word mail merge to Avery address labels. I have almost completely set
up every thing needed to do this by following mail merge instructions I
located at http://www.gmayor.com/mailmerge_from_outlook.htm.

Among other fields, I wish to include first_name, middle_initial, and
Last_name on line one in my labels. This works great for people in my Outlook
Contact file that do have a middle_initial. For those people with
no-middle-initial, my labels show two blank spaces between the first and last
names. I would, of course, like to see just a single such blank space between
the first and last names of people who do not have a middle initial. Where
can I read how to accomplish this, and I would appreciate detailed
instructions if possible?
--
Peter Sale
Santa Monica CA USA
  #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 Two blank spaces replace missing middle name- how to correct?

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

{ MERGEFIELD First_Name } { IF { MERGEFIELD Middle_Initial } "" "{
MERGEFIELD Middle_Initial } { MERGEFIELD Last_Name }" "{ MERGEFIELD
Last_Name }" }

You must use Ctrl+F9 to insert each pair of Field Delimiters { } and Alt+F9
to toggle their display.

--
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

"Peter" wrote in message
...
I'm running Outlook and Word 2003 SP3 under Windows XP Pro SP2. I wish to
perform a "mail merge" using entries from my Outlook Contacts file as
input
into a Word mail merge to Avery address labels. I have almost completely
set
up every thing needed to do this by following mail merge instructions I
located at http://www.gmayor.com/mailmerge_from_outlook.htm.

Among other fields, I wish to include first_name, middle_initial, and
Last_name on line one in my labels. This works great for people in my
Outlook
Contact file that do have a middle_initial. For those people with
no-middle-initial, my labels show two blank spaces between the first and
last
names. I would, of course, like to see just a single such blank space
between
the first and last names of people who do not have a middle initial. Where
can I read how to accomplish this, and I would appreciate detailed
instructions if possible?
--
Peter Sale
Santa Monica CA USA



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
Index: How to replace middle #s in a continous run with hyphen (# bchap555 Microsoft Word Help 1 March 29th 07 02:35 AM
Index: How to replace middle #s in a continous run with hyphen bchap555 Microsoft Word Help 3 March 29th 07 02:33 AM
Word 2002 - Prints spaces in middle of words but not on screen?!? Heather T Microsoft Word Help 0 July 6th 05 06:29 PM
How can I replace single spaces with double spaces in a docume TJ Microsoft Word Help 1 February 27th 05 04:22 AM
Spaces in the middle of words when printing LindaA Microsoft Word Help 1 February 26th 05 01:51 AM


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