View Single Post
  #9   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill
 
Posts: n/a
Default How do I apply a different font to a cross reference?

I'm getting Jezebel's results here, but you must apply the desired format to
the REF field before updating.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Graham Mayor" wrote in message
...
Yes I tried it - I have just repeated it using your example and it works
exactly as I indicated ?
This is the UK English version of Office 2003 with SP2 update.

--

Graham Mayor - Word MVP

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


Jezebel wrote:
Did you try it with mergeformat? I created some green text and
bookmarked, then inserted a REF field into a black paragraph. On its
own, the REF field is also green; you can control-Q the par to make
it black but it reverts to green with field update. Add Mergefield
and it stays black.



"Graham Mayor" wrote in message
...
Something is amiss there then. A mergeformat switch is supposed to
retain the format of the source whereas a charformat switch is
supposed to retain the format applied to the field.

From Word Help:

\*Charformat
Applies the formatting of the first letter of the field type to the
entire result. The result of the following example has bold
formatting because the
"R" in "REF" is bold.

{ REF chapter2_title \* Charformat } displays "Whales of the
Pacific". \*MERGEFORMAT
Applies the formatting of the previous result to the new result. For
example, if you select the name displayed by the field { AUTHOR \*
MERGEFORMAT } and apply bold formatting, Microsoft Word retains the
bold formatting when the field is updated when the author name
changes. --

Graham Mayor - Word MVP

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


Jezebel wrote:
Graham, I tested it before posting... Works fine on my machine.



"Graham Mayor" wrote in message
...
Actually no. It's a \*Charformat field switch you want here not a
\*mergeformat switch.

--

Graham Mayor - Word MVP

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


Jezebel wrote:
1. Insert \* MERGEFORMAT within the reference fields, so they
look something like { REF _123123123 \* MERGEFORMAT } (press
Alt-F9 to display/hide fieldcodes). That makes the format of the
references independent of the format of the reference source.

2. Define and apply a character style to the reference fields.






"KellyDW" wrote in message
...
I have a form in Word in which I want the user to be able to
enter information in one place and then have this information
automatically populate to another place within the document.

I have used cross references to accomplish this task very nicely.
The problem is that I want the first appearance of the
information to be formatted with one type of font, and the
second appearance of the information
to be formatted with another type of font. Seems like it should
be easy enough to just use the format font command on the
position of the cross reference. This only works on the first
word of the fill-in. If someone types Joe Smith at the top of
the page and I want Joe Smith to automatically
be filled in later in the document but in a different font, only
Joe will be
formatted correctly. Smith converts back to the default font of
the document.