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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difference between value.empty and value.""

Status
Not open for further replies.

MuskyMan

Technical User
Jul 31, 2002
36
US
I need to make sure a certain cell is completely void. Is it best to use .empty or .""

Thanks
 
Whilst if cell.value = "" will pick up empty cells, it'll also pick up cells with a formula that returns "" like
=if(A1="","","Blah Blah")

If you want to pick up truly empty cells only, use ISEMPTY ie
If ISEMPTY(range("A1")) then
msgbox "Empty"
else
end if Rgds
Geoff
"Some cause happiness wherever they go; others whenever they go."
-Oscar Wilde
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top