View Single Post
 
Old 02-19-2015, 08:50 AM
dherr dherr is offline Windows 8 Office 2007
Advanced Beginner
 
Join Date: Nov 2014
Location: Austria
Posts: 45
dherr is on a distinguished road
Default

Hi Graham,
thank you for your code. Helped a lot!
I modified it this way:
Code:
Sub FindRedcoloredText()
    Dim i As Long
    Dim oRng As Range
    i = 0
    Set oRng = ActiveDocument.Range
    Application.ScreenUpdating = False
    With oRng.Find
        .Font.color = wdColorRed
        Do While .Execute(Forward:=True)
            i = i + 1
            Debug.Print CStr(i) + ". " & _
                        oRng.text + " " & _
                        CStr(oRng.Information(wdActiveEndPageNumber))
            DoEvents
        Loop
    End With
    Application.ScreenUpdating = True
End Sub
So I can say: problem solved!
Greetings from Austria.
Dietrich
Reply With Quote