How to chang hightlight color?

  • Thread starter Jwalant Natvarlal Soneji
  • Start date
J

Jwalant Natvarlal Soneji

Dear friends,
I wish to set highlight color for a particular list of words in blue and
another in pink.
But not sure where and how to do that. I know a simple highlighting but it
gives only yellow as the highlight color.
Please help me.
Thanks,
 
D

DuncanL

I wish to set highlight color for a particular list of words in blue and
another in pink.

Take a look at the HighlightColorIndex property
(http://msdn2.microsoft.com/en-us/library/aa172829(office.11).aspx)

Basically you need to set a range for the text you want to affect and then
assign a wdColorIndex value to the HighlightColorIndex property of that
range.

Possible wdColorIndex values are:

wdByAuthor
wdAuto
wdNoHighlight
wdBlack
wdBlue
wdBrightGreen
wdDarkBlue
wdDarkRed
wdDarkYellow
wdGray25
wdGray50
wdGreen
wdPink
wdRed
wdTeal
wdTurquoise
wdViolet
wdWhite
wdYellow
 

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