Should be Simple...

  • Thread starter Thread starter Craig Coope
  • Start date Start date
C

Craig Coope

Hi,

I have the line of code

If Range("C7").Value = True Then

Basically I want the instruction after this code to happen if there is
anything displayed in the cell C7. Now the above code doesn't work but I
know that it is almost correct because if I type "yes" into cell C7 and then
change the code to

If Range("C7").Value = "yes" Then

it works, but I can't use this as the cell will not always contain the word
"yes" What is the correct syntax for saying "if the cell contains data"?

Thank You...

Craig...
 

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