Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default IsEmpty - what's the opposite?

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!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 419
Default IsEmpty - what's the opposite?

Theo,

how about Not IsEmpty?

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

HTH,

Conan






"Theo" wrote in message
...
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!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default IsEmpty - what's the opposite?

Soooo close... Try Not IsEmpty...

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

I like adding in the extra quotes.
--
HTH...

Jim Thomlinson


"Theo" wrote:

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!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default IsEmpty - what's the opposite?

That did the trick!
Thank you Jim
T

"Jim Thomlinson" wrote:

Soooo close... Try Not IsEmpty...

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

I like adding in the extra quotes.
--
HTH...

Jim Thomlinson


"Theo" wrote:

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!

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default IsEmpty - what's the opposite?

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

RBS


"Theo" wrote in message
...
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!




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default IsEmpty - what's the opposite?

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


On Thu, 24 Jan 2008 14:09:55 -0800, Theo wrote:

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!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IsEmpty Arne Hegefors Excel Programming 3 September 19th 06 12:40 PM
Can i use IsEmpty and IF this way? What's wrong here? changeable[_7_] Excel Programming 1 November 2nd 04 04:52 PM
Help with IsEmpty Fred Excel Programming 1 February 10th 04 03:12 PM
isempty mike allen Excel Programming 2 January 3rd 04 10:45 PM
vba: isempty chick-racer[_37_] Excel Programming 3 November 17th 03 09:52 PM


All times are GMT +1. The time now is 02:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"