Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / May 2005

Tip: Looking for answers? Try searching our database.

If data the same Disregard

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Koerner - 09 May 2005 18:17 GMT
Using Office 2002

Using Excel as the data source, I am putting together through Word's mailmerge,
a list containing:
LastName, FirstName, MaidenName

If the LastName and the MaidenName are the same I do not want the Maiden Name
data merged, and the table cell to be blank. Is there a simple way to do this?

Signature

Regards
Michael Koerner

Doug Robbins - 10 May 2005 09:09 GMT
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?
Michael Koerner - 10 May 2005 12:49 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.