Remove the yellow highlighting on the last item in the list

G

Gilroy

I have a numbered list in a text frame. The 7th item in
the list is highlighted yellow. How can I remove the
highlight?


I can get to the text of the list item using this:

Word.Application.ActiveDocument.Shapes.Item
(36).TextFrame.TextRange.ListParagraphs.Item(7).Range.Text

I can not find the property to control the highlighted
color. Can someone help?
 
P

Peter Hewett

Hi Gilroy

Try something like:
Word.Application.ActiveDocument.Shapes.Item(36) _
.TextFrame.TextRange.ListParagraphs.Item(7) _
.Range.HighlightColorIndex = wdNoHighlight

HTH + Cheers - Peter
 
G

Gilroy

That worked worderfully Peter.
Thank you!
-----Original Message-----
Hi Gilroy

Try something like:
Word.Application.ActiveDocument.Shapes.Item(36) _
.TextFrame.TextRange.ListParagraphs.Item(7) _
.Range.HighlightColorIndex = wdNoHighlight

HTH + Cheers - Peter




.
 

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