Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Robb
 
Posts: n/a
Default mail merge - different last names?

I have my addresses in an Excel file. I've matched the fields for Title,
First, Last, Spouse Title, Spouse First, and Spouse Last - so far so good.
But for couples with different last names, my label does not read (as I would
expect):

Mr. John Doe and Mrs. Jane Smith

I just get:

Mr. and Mrs. John Doe

Does anyone know how to make it do the former, but only in the case where
the couple has different last names?

Thanks,

Robb


  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor
 
Posts: n/a
Default mail merge - different last names?

For this you need a conditional field construction that will cover all
eventualities thus:

{ IF{ Mergefield Last } { Mergefield "Spouse Last" } "{ IF{ Mergefield
"Spouse Last" } "" "{ Mergefield Title } { Mergefield First} { Mergefield
Last } & { Mergefield "Spouse Title" } { Mergefield "Spouse First" } {
Mergefield "Spouse Last" }" "{ Mergefield Title } { Mergefield First} {
Mergefield Last }" }" "{ Mergefield Title } & { Mergefield "Spouse Title" }
{ Mergefield First} { Mergefield Last } "}

ie
If last name is not equal to spouse last name and if spouse last name exists
enter Mr. John Doe and Mrs. Jane Smith if the spouse last name doesn't exist
enter Mr. John Doe otherwise enter Mr. and Mrs. John Doe

All the fields are inserted by hand using CTRL+F9 for each pair of brackets.
Watch out for spelling errors and spaces and make sure your field names are
correct. If there are spaces in the field names you will need quotes around
them.

--

Graham Mayor - Word MVP

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



Robb wrote:
I have my addresses in an Excel file. I've matched the fields for
Title, First, Last, Spouse Title, Spouse First, and Spouse Last - so
far so good. But for couples with different last names, my label does
not read (as I would expect):

Mr. John Doe and Mrs. Jane Smith

I just get:

Mr. and Mrs. John Doe

Does anyone know how to make it do the former, but only in the case
where the couple has different last names?

Thanks,

Robb



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
Mail merge doesn't recognize two-word names from Outlook mino'aka Mailmerge 1 August 9th 05 06:17 AM
mail merge with attachments AS Mailmerge 5 April 9th 05 09:49 AM
How do I add names to an existing mail merge address book created. 61934 Mailmerge 1 March 22nd 05 09:31 PM
How do I mail merge to have different names on the main docume TonyM Mailmerge 1 January 25th 05 11:06 PM
Step By step mail merge 287 names on labels Jenny New Users 2 December 12th 04 12:53 AM


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