Try the following
Code:
Sub Macro1()
Dim i As Long
Dim oTable As Table
For Each oTable In ActiveDocument.Tables
For i = oTable.Rows.Count To 1 Step -1
If oTable.Cell(i, 1).Shading.BackgroundPatternColor = &HCCFF00 Or _
oTable.Cell(i, 1).Shading.BackgroundPatternColor = &HB2B2B2 Then
oTable.Rows(i).Delete
End If
Next i
DoEvents
Next oTable
Set oTable = Nothing
End Sub