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 / July 2005

Tip: Looking for answers? Try searching our database.

Comma

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chartley - 07 Jul 2005 15:23 GMT
How do I insert a comma only before a merge field that is populated?  In
other words, no comma if the merge field following the comma is blank.
Peter Jamieson - 07 Jul 2005 15:41 GMT
You could use

{ IF "{ MERGEFIELD myfield }" = "" "" ",{ MERGEFIELD myfield }" }

or in Word 2003 and probably 2002 just

{ MERGEFIELD myfield \b , }

should be enough.

You can do the latter by selecting the field and right-clicking, then Edit
Field and fill in the relevant option.

otherwise, use Alt-F9 to view the full field codes, ctrl-F9 to insert each
pair of the special field braces {}, and type the remaining text.

Peter Jamieson
> How do I insert a comma only before a merge field that is populated?  In
> other words, no comma if the merge field following the comma is blank.
chartley - 07 Jul 2005 16:08 GMT
Thank you!

> You could use
>
[quoted text clipped - 15 lines]
> > How do I insert a comma only before a merge field that is populated?  In
> > other words, no comma if the merge field following the comma is blank.

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.