I have an inelegant global macro that I'm trying to refine. Here's the old one:
This all works nicely, except I'm limited to six rows. I'd like to iterate a loop to unlimit myself, because I suspect I'll be getting bigger sheets with more blanks needing to be checked.![]()
Please Login or Register to view this content.
Here's what I've come up with:
Line 04 is failing to evaluate properly. I have tried the following:![]()
Please Login or Register to view this content.
stuff = ""
stuff = vbNullString
IsEmpty(stuff)
IsEmpty(Range(stuff))
IsEmpty(Range("stuff"))
IsEmpty(Cells(stuff))
IsEmpty(Cells("stuff"))
I've also tried all those variants with stuff.Value.
Stepping through this new macro with nested For loops, it will arrive at line 04, then jump down to line 08. This happens on every single row, regardless of the state of .Offset(1,1), regardless of what method I use to check if it's empty.
What I don't understand is why in the old macro, = "" works, with nothing working when checking the same row on the same sheet with the new one.
What am I missing?
Bookmarks