Empty Cell

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What is the character for an empty cell? If I use 0,
this is what I have.

If (Range("A" & n).Value) = 0 Then

I want the 0 to be replaced with an empty cell
character. Thank you.
 
If IsEmpty(Range("A" & n).Value) Then
'do stuff
End If

Good Luck
CB
 
You could also do this:

If Len(Range("A" & n).Value) = 0 Then

Which might run a bit faster, but I haven't tested both to see.
CB Hamlyn
 

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