
Signature
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
It would, if I knew how to write that stuff.

Signature
Regards
Michael Koerner
Use an If...then...else field that compares the MaidenName to the LastName
and only prints it if it is different

Signature
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
> Using Office 2002
>
[quoted text clipped - 7 lines]
> data merged, and the table cell to be blank. Is there a simple way to do
> this?
Graham Mayor - 10 May 2005 14:07 GMT
{IF {Mergefield LastName} <> {Mergefield MaidenName} "{Mergefield
MaidenName}"}
You need to create the above using CTRL+F9 for each pair of field brackets.
Put in the MaidenName cell this will only enter content if the fields have
different content.

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> It would, if I knew how to write that stuff.
>
[quoted text clipped - 23 lines]
>> Regards
>> Michael Koerner
Michael Koerner - 10 May 2005 14:20 GMT
Many thanks

Signature
Regards
Michael Koerner
{IF {Mergefield LastName} <> {Mergefield MaidenName} "{Mergefield
MaidenName}"}
You need to create the above using CTRL+F9 for each pair of field brackets.
Put in the MaidenName cell this will only enter content if the fields have
different content.

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Michael Koerner wrote:
> It would, if I knew how to write that stuff.
>
[quoted text clipped - 25 lines]
>> Regards
>> Michael Koerner
Greg - 10 May 2005 14:31 GMT
Michael,
Have you tried?
Something like:
{IF {Mergefield "MaidenName"}<>{Mergefield "LastName"}{Mergefield
"MaidenName"}""}
Michael Koerner - 10 May 2005 15:56 GMT
I did, works well, thanks to Graham Mayor. I notice that your code although
similar to his has "" around all the Mergefield names. Is there an advantage to
this?

Signature
Regards
Michael Koerner
Michael,
Have you tried?
Something like:
{IF {Mergefield "MaidenName"}<>{Mergefield "LastName"}{Mergefield
"MaidenName"}""}
Greg - 10 May 2005 17:27 GMT
Michael,
No advantage that I know of and it might not even work. I didn't have
a document to test with and I guessed if the speech marks were required
or not. Graham's method is probably best.
Michael Koerner - 10 May 2005 17:59 GMT
I'll have to try it out and see. Seems to me I read somewhere that it was
acceptable both ways. Thanks again.

Signature
Regards
Michael Koerner
Michael,
No advantage that I know of and it might not even work. I didn't have
a document to test with and I guessed if the speech marks were required
or not. Graham's method is probably best.