Question : VBA Word code to find a border around text.

I would like to find a way that I can make VBA search a Word document for text that has a border around it. Any suggestions? See attached sample.
     I suspect the solution is not simple.
     Thanks for any suggestions.
           -- j.r.a.
Attachments:
 
Doc with text that has a border
 

Answer : VBA Word code to find a border around text.

Something like this?

Chris
1:
2:
3:
4:
5:
6:
7:
Sub getBord()
Dim wrd As Object

    For Each wrd In ThisDocument.Words
        If wrd.Borders(wdBorderTop).Visible Then MsgBox "Do Something with " & wrd
    Next
End Sub
Random Solutions  
 
programming4us programming4us