Make merged field bold if merged field is > 3

V

Vick

if merged field > 3 then the merged field needs to be bold, otherwise it
should not be in bold.
 
G

Greg Maxey

Vick

Try something like:

{ IF { Test } >"3"{ Test \* Charformat }{ Test } }

Replace "Test" with your mergefield name and apply bold format to the "T"
immediate to the right of the value 3. Look up Charformat in Word help and
you will get an explanation and other examples.
 
V

Vick

The following did not work because the merged field is formatted as numeric
and needs to be tested as > 3 (or a specific number). The original merged
field appears as

{Mergefield "v1Mean"\# ##0.##}

So I am trying to format the above merged field in bold if the number
(v1Mean) is greater than 3.

Any more help greatly appreciated.

Vick
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?Vmljaw==?=,
The following did not work because the merged field is formatted as numeric
and needs to be tested as > 3 (or a specific number). The original merged
field appears as

{Mergefield "v1Mean"\# ##0.##}

So I am trying to format the above merged field in bold if the number
(v1Mean) is greater than 3.
What Gregy showed you works when I test it with your numerical switch, and
take away the "quotes" around the 3. You also need to insert spaces between
the various parts of the equation (see below). Sometimes, Word cares whether
something is textual or numeric; but most of the time it doesn't matter.

{ IF { Test \# "##0.##" } > 3 "{ Test \# "##0.##" \* Charformat }" "{ Test \#
"##0.##" }" }

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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