This is the code I used (I marked the line in which I get an exception):
Code:
Sub FixWhiteFontInTable()
With ActiveDocument.Range
With .Find
.ClearFormatting
.Style = ActiveDocument.Styles("Table Heading")
.Text = ""
.Forward = True
.Execute Format:=True, Forward:=True
End With
Do While .Find.Found
If .Information(wdWithInTable) Then
If .Cells(1).RowIndex > 2 Then
Selection.Font.ColorIndex = wdBlack
End If
End If
.Collapse wdCollapseEnd
.Find.Execute
Loop
End With
End Sub
What did I miss?