Reply
 
Thread Tools Display Modes
  #1   Report Post  
 
Posts: n/a
Default Changing the color of the word {FIELD} in a Main merge document

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.

  #2   Report Post  
Doug Robbins
 
Posts: n/a
Default

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
wrote in message
oups.com...
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.



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making Word do something that Wordperfect can do NarniaUK New Users 4 May 1st 05 10:44 PM
In Word, how can I see all files (*.*) in "save as"? citizen53 New Users 8 April 4th 05 04:56 PM
creating forms Fluffypink Microsoft Word Help 4 March 9th 05 04:17 PM
How do I create & merge specific data base & master documents? maggiev New Users 2 January 12th 05 11:30 PM
Continuous breaks convert to next page breaks Jennifer Hunt Microsoft Word Help 2 December 30th 04 05:45 PM


All times are GMT +1. The time now is 04:40 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"