So I' think i've gotten quite close:
Code:
Option Explicit
Sub parenrows()
Dim i As Long
Dim c As Object
With Selection
If .Information(wdWithInTable) = False Then Exit Sub
With .Tables(1)
'Kill any existing borders
.Borders(wdBorderTop).LineStyle = wdLineStyleNone
.Borders(wdBorderLeft).LineStyle = wdLineStyleSingle
.Borders(wdBorderBottom).LineStyle = wdLineStyleNone
.Borders(wdBorderRight).LineStyle = wdLineStyleSingle
.Borders(wdBorderHorizontal).LineStyle = wdLineStyleNone
.Borders(wdBorderVertical).LineStyle = wdLineStyleNone
For i = 1 To .Rows.Count
For Each c In .Rows(i).Cells
' Restore borders to every 2nd row
If InStr(c.Range.Cells, "(") > 0 Then
.Borders(wdBorderBottom).LineStyle = wdLineStyleSingle
End If
Next c
Next i
End With
End With
End Sub
the code bombs at the range.text portion.
Basically, i want to add a bottom line to any row with an open parentheses.
Thanks!