Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Mail Merge - Change Font to Bold

4,450 views
Skip to first unread message

Suzy J. Lopez

unread,
Mar 8, 2001, 11:52:48 AM3/8/01
to
Hello Everyone,
I hope someone can help me with this one. We are doing a mail merge and
what we need to do is during the mail merge if the field coming in has a
special character, lets say an (*), then we want the the field to change the
Font to Bold. Is there anyone out there that have any ideas?

Your help is very much appreciated
Thanks So Much!
Suzy :)


Peter Jamieson

unread,
Mar 9, 2001, 2:49:38 AM3/9/01
to
You would have to
a. find some way to test the incoming data value
b. use IF fields to specify whichstatements to

Ideally, you would have a separate field to contain a flag (say "f" ) that
says "I want field x to be bold"

Then you can use

{ IF { MERGEFIELD f } = "Y" "{ MERGEFIELD x \*Charformat }" "{ MERGEFIELD
x }" }

You then have to select the { MERGEFIELD x \Charformat } field and apply
bold formatting to it.

If you try to have this flag as part of your data, so that field x contains
e.g. "use normal formatting" or "@use bold formatting", the problem is that
there is no way to remove the "* from the field before printing it. If you
/want/ to print the "@", you can test the flag as long as it is either at
the beginning or end of the field, using wildcards. "*" is one of the
wildcards so I don't think you could use it, so I have used "@" instead.
e.g.

{ IF { MERGEFIELD x } = "@*" "bold text" "not bold text" }

If your "*" or "@" flag should cause the text to be substantially different,
you may be better off putting the variant texts into different Word
documents and using an INCLUDETEXT field to include one text or the other
based on the result of an IF field.

If you just want formatted text to get through to your document /and/ you
have control over the format/origin of the data, then you simply use a Word
table as the data source and just use

{ x }

instead of

{ MERGEFIELD x }

to merge the data complete with formatting.

--
Peter Jamieson
MS Word MVP

"Suzy J. Lopez" <suzy....@viainfo.net> wrote in message
news:OWYQ2A$pAHA.1492@tkmsftngp03...

Suzy J. Lopez

unread,
Mar 9, 2001, 9:02:26 AM3/9/01
to
Thank you so much - I try that.

Thanks
Suzy

Peter Jamieson <p...@pjjnet.demon.co.uk> wrote in message
news:#OTiw2GqAHA.956@tkmsftngp03...

0 new messages