Thread: editing feilds
View Single Post
  #9   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default editing feilds

Insert each pair of special field braces {} using ctrl-F9. Everything else
is ordinary text. Format the various parts of the result text the way you
want.

(The layout of an IF field is basically

{ IF condition "result text if condition is true" "result text if condition
is false" }

e.g., to give a contrived example,

{ IF 1 = 1 "you should always get the true result text" "and never this
false result text" }

--
Peter Jamieson
http://tips.pjmsn.me.uk

"********Meg" wrote in message
...
Are those quotes or some other symbol? Am I inserting the field or typing
it in. When I insert it, comes with quotes

--
Meg Darnell, LMT
Director of Alumni Services
Swedish Institute College of Health Sciences
212-924-5900 x142
"Our lives begin to end the day we become silent about things that
matter" - MLK


"Graham Mayor" wrote in message
...
Replace what you have with

{ IF{ MERGEFIELD RequiredReading } "" "Required Reading: { Mergefield
RequiredReading }"}

Use CTRL+F9 for each set of field brackets and type the rest. Format
"Required Reading:" as bold font and the
final { Mergefield RequiredReading }as italic.


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


********Meg wrote:
thanks, I think I understand what you are saying, but I'm not clear
in how to do the formatting. This is VERY new for me.

here is what I have
{mergefeild Required Reading\b "required reading:'}

I want the text Required Reading (which is the text that will appear
if there is anything in the field ) to be bold and the content of the
field to be italics (i.e., it's a book title so it should be).

Ex:
Required Reading (in bold): How to use excel, by So and So (in
italics)
thanks for your help, if this can work. it would be GREAT!


Meg


"Microsoft Public Groups" wrote in
message ...
Assuming you are using

{ MERGEFIELD myfield \b "beforetext: " }

I don't think you can achieve the formatting you need using that
technique (even replacing "beforetext" by "{ QUOTE beforetext:
\*Charformat } and formatting the Q the way you want does not work).

Instead, try

{ IF "{ MERGEFIELD myfield }" = "" "" "beforetext:: { MERGEFIELD
myfield\*Charformat }" }

then format beforetext: the way you want it and format the M of the
second MERGEFIELD the way you want it.

Ensure all the {} are ht especial field code braces you can insert
using ctrl-F9

Peter Jamieson

"********Meg" wrote in
message ...
I recently learned (very happily, I might add) to edit a mail merge
field to include text before or after that field. Another fabulous
feature is that the text will not appear if there is no data in the
datasource for that particular record. This is a very cool
feature. (office 2003) However, I want to format both the text that
is before the field
and the actual data in the field (one would be bold and one would
be italics) When I change the info in my form, it looks good, but
when I do the merge,
all of the formatting disappears. If I italicize the information
in the data source document , it looses it's formatting as well.

any ideas?

thanks

--
Meg