Conditional formatting of text - how?

J

John Kane

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?
 
P

Peter Jamieson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top