Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / March 2007

Tip: Looking for answers? Try searching our database.

Should be Simple...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Craig Coope - 21 Mar 2007 12:13 GMT
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...
macropod - 21 Mar 2007 12:25 GMT
Hi Craig,

Try:
If Range("C7").Value <> "" Then

Cheers
Signature

macropod
[MVP - Microsoft Word]
-------------------------

> Hi,
>
[quoted text clipped - 15 lines]
>
> Craig...
Craig Coope - 21 Mar 2007 12:32 GMT
> Hi Craig,
>
> Try:
> If Range("C7").Value <> "" Then
>
> Cheers

Ahhh...I knew it would be that simple!

Cheers...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.