Changing the color of the word {FIELD} in a Main merge document

A

apasko

In WordPerfect the {FIELD} codes are displayed in red so that when you
are creating the Main document, they stand out from the text of the
Main document. Is there a way to have the Word {FIELD} codes display
in a different color just when editing the Main document? When the
merge is completed, the document would all be in the regular black
font. Using 2002 with Windows XP.
Thanks.
 
D

Doug Robbins

Run the following macro:

Dim amf As Field
For Each amf In ActiveDocument.Fields
If amf.Type = wdFieldMergeField Then
amf.Code.Font.Color = wdColorRed
End If
Next amf
ActiveDocument.Fields.ToggleShowCodes


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
G

Graham Mayor

Tools > options > view > set 'field shading' to 'always' and the fields will
all be highlighted in grey.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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