Checking for cell content
Sub routine()
If IsEmpty(Selection) Then
MsgBox ("Really empty")
End If
End Sub
--
Gary's Student
"danhattan" wrote:
I need to know if a cell is empty so my code can paste into it if so. If I
were just entering a formula into a worksheet I'd just use COUNT or COUNTA.
But I'm not sure what the equivalent check in VBA is. Unfortunately, my data
will at times include zeros so checking for 0 isn't working either.
If anyone can help me, it's very much appreciated.
Dan
|