Quote:
Originally Posted by ibavly
There's also an isempty function in vba
Tried this and nothing happens,
Code:
If IsEmpty(Abs(c.Value)) = True Then MsgBox c.Value
Switched to this,
Code:
If IsEmpty(Abs(c.Value)) = False Then MsgBox c.Value
And a blank message box pops up.
So for some reason when I have an empty cell* it evaluates that empty is false, even though it appears to be empty when the value is displayed in MsgBox.
*I'm assuming that a freshly deleted cell should be empty?
PS - my code looks a little different than the first example because I needed to change how I was accessing values in order to build in the looping required in case more than one cell is deleted at a time.