FractalWalk
Technical User
I know this should be easy but I can't get anything to work. I have an Excel macro that needs to End if the active cell is null but run otherwise.
My problem is that everything I try reads a 0 (zero) as null/empty and ends the script. I need a 0 to still trigger the code and only a true null to end it.
Here are different methods I have tried that all failed
If IsNull(ActiveCell) then End
If IsEmpty(ActiveCell) then End
If ActiveCell.Value = Empty then End
I've also tried identifying if it is 0 and if so skipping over the line with the end command but then I get the opposite issue: it reads nulls as 0's.
What cell property or VBA function can I use to distinguish between a 0 and null in a cell?