View Single Post
  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Using mail merge to distinguish colours in Word

However, these strings can also span multiple paragraphs (not just a
single word as I have used) and could include tables with the cell shading
you're after.


FWIW they can also include /inline/ textboxes but AFAICS you will then also
always get the "Word cannot update locked fields" problem when merging.

Peter Jamieson

"macropod" wrote in message
...
hi ben,

The best you can do with field coding is to approximate what you're after.
For example, you could use field coding like:
{IF{MERGEFIELD Colour}= "Blue" "Water"}
{IF{MERGEFIELD Colour}= "Red" "Fire"}
{IF{MERGEFIELD Colour}= "Green" "Grass"}
and colour/highlight the 'Water', 'Fire' and 'Grass' strings with the
colour/highlight you want. This will colour/highlight those text strings,
but nothing more. However, these strings can also span multiple paragraphs
(not just a single word as I have used) and could include tables with the
cell shading you're after.

--
Cheers
macropod
[Microsoft MVP - Word]


"ben_johnson1991" wrote in message
...
I'm using a mail merge from Excel. I dont think this is possible but its
worth a try.
I want colours that are listened in excel to be able to represent a
colour
of a text box in word.

example.
The title could be "Tree" and in the colour associated in the excel sheet
would be "Green", so in word when the mail merge is run to put "Tree"
into a
text box and i would like somehow for word to recognise "green" and then
make
that text box background colour green.

Any help would be great, even if its that it's not possible.
Thanks