Hello all,
I have this seemingly simple code that will delete rows that have blanks in a particular column, but I doesn't delete all of them unless I run it 5 times or more. Any ideas out there as to what would cause this?
I have this seemingly simple code that will delete rows that have blanks in a particular column, but I doesn't delete all of them unless I run it 5 times or more. Any ideas out there as to what would cause this?
VBA Code:
Sub deletestuff()
Dim R As Long
For R = 2 To 100
If Range("B" & R).Value = "" Then Rows(R).Delete
Next R
End Sub