Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Index: How to replace middle #s in a continous run with hyphen (# | Microsoft Word Help | |||
Index: How to replace middle #s in a continous run with hyphen | Microsoft Word Help | |||
Word 2002 - Prints spaces in middle of words but not on screen?!? | Microsoft Word Help | |||
How can I replace single spaces with double spaces in a docume | Microsoft Word Help | |||
Spaces in the middle of words when printing | Microsoft Word Help |