Quote:
Originally Posted by gmayor
There are no 'lines' in a Word document. If by line you mean paragraph then use the following instead to highlight paragraphs that are all formatted as wdAuto
Code:
Dim oRng As Range
Dim oPara As Paragraph
For Each oPara In ActiveDocument.Paragraphs
If oPara.Range.Font.ColorIndex = wdAuto Then
oPara.Range.HighlightColorIndex = wdYellow
End If
Next oPara
|
You got it!! Thanks for your help!!