Butterfly Bill,
for more, see the "Add a formatting switch to a field code" section in the
article at
http://office.microsoft.com/en-us/wo...CH100992711033
("Insert and format field codes").
--
Stefan Blom
Microsoft Word MVP
"macropod" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi Butterfly Bill,
>
> The MERGEFORMAT switch is used to retain the formatting of the source.
> That's why applying a different format to the output doesn't give
> consistent results.
>
> The CHARFORMAT formats a field's output to match whatever formatting is
> applied to the first character in the field.
>
> The use of both switches is discussed in Word's Help file.
>
> --
> Cheers
> macropod
> [Microsoft MVP - Word]
>
>
> "Butterfly Bill" <(E-Mail Removed)> wrote in message
> news:b86bb641-5923-465c-b9b6-(E-Mail Removed)...
> On Aug 3, 5:45 pm, "macropod" <macro...@invalid.invalid> wrote:
>
>> The 'correct' way to do impose a particular format on the StyleRef
>> field's output is to insert it into a paragraph with the correct
>> Style formatting or to use a Charformat switch. To use the Charformat
>> switch:
>> . select the field and press Shift-F9 to expose the field code. It should
>> look like { STYLEREF "Heading 1" } or { STYLEREF "Heading
>> 1" \* MERGEFORMAT }
>> . delete the '\* MERGEFORMAT' switch (if present) and insert a '\*
>> CHARFORMAT' switch (ie { STYLEREF "Heading 1" \* CHARFORMAT })
>> . Format the 'S' in 'STYLEREF' with the format you require
>> . Press F9 to update the field.
>>
>
> OK, I changed the field code directly as you said, and it's starting
> to look like it worked, but what are the precise meanings of those two
> switch codes?