If you want to look for an empty cell -- no formula that evaluates to "".
if isempty(worksheets("Somesheetnamehere").range("A1").value) then
'it's empty
else
'it's got something in it.
end if
checking for "" with something like this may not be enough:
if worksheets("Somesheetnamehere").range("A1").value = "" then
'cell looks empty, but it may have a formula that evaluates to ""
'it may even be empty
else
'cell has something in it for sure
end if
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.