Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

if cell is empty in excel 1

Status
Not open for further replies.

Daya100

Programmer
Jan 11, 2002
21
US
I'm trying to identify when a cell has not had information entered so that I can give an error. I have tried using IsEmpty and IsNull but nothing seems to work. How do I do this?
Thanks!
Daya
 
Hi,
Try this (in this case it's looking at A1)...
Code:
    Select Case Cells(1, 1).Value
        Case Null, Empty, ""
            MsgBox "Enter Data"
    End Select
Hope this helps :) Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top