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 / September 2006

Tip: Looking for answers? Try searching our database.

IF command to insert a comma if the Title field is not blank

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
K Hyzer - 21 Sep 2006 15:20 GMT
I am merging a mailing list to a Word letter. I will be printing the person's
name followed by their title. How do I set up the IF command to insert a
comma after the person's name if the Title field is not blank? I am using
Word 2003.
Doug Robbins - Word MVP - 21 Sep 2006 20:55 GMT
Insert and If...then...Else... field from the Word Fields toolbar, or using
Ctrl+F9 to insert the field delimiters, create the following in the document

{ IF { MERGEFIELD Title } <> "" ", { MERGEFIELD Title }"  }

Use Alt+F9 to toggle off the display of field codes.

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

>I am merging a mailing list to a Word letter. I will be printing the
>person's
> name followed by their title. How do I set up the IF command to insert a
> comma after the person's name if the Title field is not blank? I am using
> Word 2003.
K Hyzer - 22 Sep 2006 15:01 GMT
This helped - I'm almost there. This does insert the title field, but not a
comma. This is what I put in the document:
{ IF {MERGEFIELD Title } <>"" ", {MERGEFIELD Title }" }

Any suggestions?

Thanks,
Kim

> Insert and If...then...Else... field from the Word Fields toolbar, or using
> Ctrl+F9 to insert the field delimiters, create the following in the document
[quoted text clipped - 8 lines]
> > comma after the person's name if the Title field is not blank? I am using
> > Word 2003.
Doug Robbins - Word MVP - 23 Sep 2006 05:26 GMT
You probably did not use Ctrl+F9 for each pair of field delimiters.  You
cannot insert the { } by using Shift plus the number 9 and 0 number keys (US
Keyboard layout)

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

> This helped - I'm almost there. This does insert the title field, but not
> a
[quoted text clipped - 22 lines]
>> > using
>> > Word 2003.
Peter Jamieson - 26 Sep 2006 12:00 GMT
or in Word 2003, try

{ MERGEFIELD Title \b ", " }

Peter Jamieson

> This helped - I'm almost there. This does insert the title field, but not
> a
[quoted text clipped - 22 lines]
>> > using
>> > Word 2003.

Rate this thread:






 
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.