Is it possible to apply conditional formatting in a Word doc?

C

cdefmom

I am trying to do a mail merge that would include some fields that might not
apply on some of the letters. Is there a way to conditionally format the text
as I can in Access to leave that area blank if there is no supporting data?
 
J

Jean-Guy Marcil

cdefmom was telling us:
cdefmom nous racontait que :
I am trying to do a mail merge that would include some fields that
might not apply on some of the letters. Is there a way to
conditionally format the text as I can in Access to leave that area
blank if there is no supporting data?

Use an IF field:

{IF {MERGEFIELD NameOfField}= "" " " "{MERGEFIELD NameOfField}"}

This says:
If {MERGEFIELD NameOfField} is empty (""), insert some spaces (" ")
or, if you want absolutely nothing to show, remove all spaces (""), if not,
insert the merge field value ("{MERGEFIELD NameOfField}").
Note that each pair of {} must be created by doing CTRL-F9 (or by using the
Insert > Fields... menu item).

--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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