bobkap
Active Member
- Joined
- Nov 22, 2009
- Messages
- 313
- Office Version
- 365
- Platform
- Windows
- Mobile
- Web
I cannot seem to figure out how to use range with cells when using the Isempty function. Using the code below works fine. But I want to use cells instead of range and every thing I've tried bombs out.
For example something like 'If IsEmpty Range(cells(1,1), cells(1,1)) = True Then' never works. Or, if I delete the range completely, adjust the parens and go with just the cells. That doesn't work either.
Are we not supposed to use the cells function with isempty? Or, is my syntax just wrong?
If IsEmpty(Range("A1")) = True Then
MsgBox "Cell A1 is empty"
Else
MsgBox "Cell A1 is NOT Empty"
End If
For example something like 'If IsEmpty Range(cells(1,1), cells(1,1)) = True Then' never works. Or, if I delete the range completely, adjust the parens and go with just the cells. That doesn't work either.
Are we not supposed to use the cells function with isempty? Or, is my syntax just wrong?
If IsEmpty(Range("A1")) = True Then
MsgBox "Cell A1 is empty"
Else
MsgBox "Cell A1 is NOT Empty"
End If