indi visual
Member
For the life of me I have no idea why this isn't working.
'''if any cell in column D does not contain "*:*" then delete entire row
Dim C As Range
For Each C In Range("D2:D" & Range("D" & Rows.Count).End(xlUp).Row)
If C.Text <> "*:*" Then
C.EntireRow.Delete Shift:=xlUp
End If
Next C
'''if any cell in column D does not contain "*:*" then delete entire row
Dim C As Range
For Each C In Range("D2:D" & Range("D" & Rows.Count).End(xlUp).Row)
If C.Text <> "*:*" Then
C.EntireRow.Delete Shift:=xlUp
End If
Next C