I have a macro that stops when it encounters the first cell which meets the condition of the if then statement. Why?
Thanks!
Nicole
Code:
Sub Macro1()
Dim Rng As Range
Dim MyRow As Range
Set Rng = Range("Table1[[column1]]")
For Each MyRow In Rng
Ctw = UBound(Split(MyRow.Value, " ")) + 1
If Ctw < 3 Then
MyRow.EntireRow.Delete
End If
Next MyRow
End Sub
Nicole