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 2007

Tip: Looking for answers? Try searching our database.

Conditional formatting of text - how?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Kane - 05 Jul 2007 13:44 GMT
I am using Word 2007 with XP SP2.  I have a mailmerge document which inserts
data correctly into a table but I wanted to format it conditional upon one of
the field values, ie for every record if the field Probationer is true, I
want the text to be green or even the cell background to be green.  Can this
be done?
Peter Jamieson - 05 Jul 2007 18:26 GMT
There are no facilities in Word designed to do conditional formatting of
text, so the best you can do is to use { IF } fields that specify one set of
text and fields (let's call it "A") if a condition is true, and another set
("B") if false. As long as you can mark up "A" and "B" how you want, you can
probably achieve what you need.

FOr example, you might be able to do

{ IF { MERGEFIELD Probationer } = 1 "<mark this text green>the text" "<don't
mark this text grenn>the text" }

(where the idea is that you actually apply green formatting to the first
"the text" and not to the second.

However, I don't think you will be able to mark individual table cells green
or not green using this method. Also, you are pushing Word at this point -
try to keep it really simple.

Peter Jamieson

>I am using Word 2007 with XP SP2.  I have a mailmerge document which
>inserts
[quoted text clipped - 4 lines]
> this
> be done?

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.