Identifying a value

  • Thread starter Thread starter jtrevill
  • Start date Start date
J

jtrevill

How, using VB, can you determine the difference between a zero and
blank cell?

Thanks
 
The VBA IsEmpty function you can use if a cell is really empty

Sub test()
If IsEmpty(Range("A1")) = True Then
MsgBox "blank"
Else
MsgBox "not blank"
End If
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top