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 / Programming / January 2008

Tip: Looking for answers? Try searching our database.

IsEmpty - what's the opposite?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Theo - 24 Jan 2008 22:09 GMT
This works great -

If cll.Value = "R" And IsEmpty(cll.Offset(0, 2)) Then ....

I need the same statement, but "not empty" - been searching, but can't find
it!
Any help appreciated!
Conan Kelly - 24 Jan 2008 22:27 GMT
Theo,

how about Not IsEmpty?

If cll.Value = "R" And Not(IsEmpty(cll.Offset(0,2))) Then

HTH,

Conan

> This works great -
>
[quoted text clipped - 4 lines]
> it!
> Any help appreciated!
RB Smissaert - 24 Jan 2008 22:27 GMT
Try:
If cll.Value = "R" And Not IsEmpty(cll.Offset(0, 2)) Then

RBS

> This works great -
>
[quoted text clipped - 4 lines]
> it!
> Any help appreciated!
Jim Thomlinson - 24 Jan 2008 22:28 GMT
Soooo close... Try Not IsEmpty...

If cll.Value = "R" And Not(IsEmpty(cll.Offset(0, 2))) Then ....

I like adding in the extra quotes.
Signature

HTH...

Jim Thomlinson

> This works great -
>
[quoted text clipped - 3 lines]
> it!
> Any help appreciated!
Theo - 24 Jan 2008 22:34 GMT
That did the trick!
Thank you Jim
T

> Soooo close... Try Not IsEmpty...
>
[quoted text clipped - 9 lines]
> > it!
> > Any help appreciated!
Gord Dibben - 24 Jan 2008 23:18 GMT
Dim cll As Range
For Each cll In Selection
If cll.Value = "R" And Not IsEmpty(cll.Offset(0, 2)) Then
 'do something
End If
Next

Gord Dibben  MS Excel MVP

>This works great -
>
[quoted text clipped - 3 lines]
>it!
>Any help appreciated!
 
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.