Highlight Merged Fields

J

Jimbob

I posted this question in the Mail Merge area without success - Maybe it can
be addressed here.
I'd like to change the grey shading used to Highlight Merge Fields in a
mail merge document to another colour, say, green when a user toggles the
button on the Mail Merge Toolbar. Is that possible?
I'm using Word 2003.

Many thanks
 
D

Doug Robbins - Word MVP

Dim afield As Field
For Each afield In ActiveDocument.Fields
If afield.Type = wdFieldMergeField Then
afield.Select
With Selection.Range.Shading
.Texture = wdTexture12Pt5Percent
.BackgroundPatternColorIndex = wdGreen
.ForegroundPatternColorIndex = wdBlack
End With
End If
Next afield


--
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
 

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