Does anybody know how to make VBA check for empty cells in excel??
I have a bit of code that searches recursively until it finds the first ocurrence of cell = Null or cell = "" and then assigns this rownumber to a variable.
When I refer to this variable r, the first time, it works fine, but if there has been something in the cells, and has been deleted, then the loop goes all the way down to where the cells have never been filled before.
Any ideas????
Thanks in advance.
I have a bit of code that searches recursively until it finds the first ocurrence of cell = Null or cell = "" and then assigns this rownumber to a variable.
When I refer to this variable r, the first time, it works fine, but if there has been something in the cells, and has been deleted, then the loop goes all the way down to where the cells have never been filled before.
Any ideas????
Thanks in advance.