Hey guys, i have a loop in my macros which goes through a range and deletes any cells that contain "(blank)".
the problem is, i have to step through the loop a few times in vba for it to delete all the instances. otherwise some cells with "(blank") still remain.
the problem is, i have to step through the loop a few times in vba for it to delete all the instances. otherwise some cells with "(blank") still remain.
Code:
Range("date").Select
For Each cl In Range("date")
If cl.Formula = "(blank)" Then
cl.Delete Shift:=xlUp
End If
Next cl