Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default Can .FindNext return Nothing??

From what I understand, there needs to be an On Error of sorts, because
you're going to be testing for c.Address, and if c Is Nothing, then it
doesn't have an address property. I believe that is the error you are
receiving. Um, did I miss something again? Or is that what you are talking
about? (Wouldn't be the first time ... )

--
Regards,
Zack Barresse, aka firefytr


"Wild Bill" wrote in message
...
On Fri, 29 Apr 2005 20:33:34 -0700, "Zack Barresse"
wrote:
There would be no need to test for it inside of the loop.
(...)
So both checks, for Is Nothing and if the .Address < FirstAddress
(barring
it's been set), are necessary for a complete check and to cover all your
bases.


But what we're seeing is that the code bombs when c really is Nothing.

It's similar to this deal:
A1=NA()
B1=IF(OR(ISNA(A1),A1=0),1,0)

You'd like it to give 1, but it gives #N/A



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
Findnext Noemi Excel Discussion (Misc queries) 1 December 12th 05 11:23 AM
Using 'Find' and 'FindNext' in vba SA3214 Excel Programming 3 March 25th 05 12:17 PM
FindNext John Keturi Excel Programming 1 October 16th 04 01:56 PM
FindNext SJ[_6_] Excel Programming 7 May 21st 04 06:01 AM
problem with .FindNext Bob Cochran Excel Programming 6 October 11th 03 02:02 PM


All times are GMT +1. The time now is 12:36 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"