PC Review


Reply
Thread Tools Rate Thread

another question about find

 
 
Gary Keramidas
Guest
Posts: n/a
 
      1st Mar 2007
right now i am using this:
Set rngfound = ws4.Columns("B:B").Find

just wondering, if it would be better to actually determine the exact range in
column B rather than searching the entire column. most of the rows are going to
be blank, anyway.


--


Gary



 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      1st Mar 2007
If there is a difference it is so small as to not be noticable. Find is smart
enough to only look in cells that have values. Oddly enough in most cases it
would probably be slower to define the range to search as the time taken to
define the range is probably longer than the extra work potentially done by
the find... I have not tested this against a sheet where the used range gets
messed up which as a guess would be the only place where find might be
inefficient...

In short leave your code as is (IMO)...
--
HTH...

Jim Thomlinson


"Gary Keramidas" wrote:

> right now i am using this:
> Set rngfound = ws4.Columns("B:B").Find
>
> just wondering, if it would be better to actually determine the exact range in
> column B rather than searching the entire column. most of the rows are going to
> be blank, anyway.
>
>
> --
>
>
> Gary
>
>
>
>

 
Reply With Quote
 
Gary Keramidas
Guest
Posts: n/a
 
      1st Mar 2007
ok, jim, thanks.

--


Gary


"Jim Thomlinson" <James_Thomlinson@owfg-Re-Move-This-.com> wrote in message
news:7EA65B45-03DB-4C64-B5F4-(E-Mail Removed)...
> If there is a difference it is so small as to not be noticable. Find is smart
> enough to only look in cells that have values. Oddly enough in most cases it
> would probably be slower to define the range to search as the time taken to
> define the range is probably longer than the extra work potentially done by
> the find... I have not tested this against a sheet where the used range gets
> messed up which as a guess would be the only place where find might be
> inefficient...
>
> In short leave your code as is (IMO)...
> --
> HTH...
>
> Jim Thomlinson
>
>
> "Gary Keramidas" wrote:
>
>> right now i am using this:
>> Set rngfound = ws4.Columns("B:B").Find
>>
>> just wondering, if it would be better to actually determine the exact range
>> in
>> column B rather than searching the entire column. most of the rows are going
>> to
>> be blank, anyway.
>>
>>
>> --
>>
>>
>> Gary
>>
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
find question on vba moonhk Microsoft Excel Programming 1 17th Feb 2010 09:04 AM
How do I find my question? billnock Microsoft Excel Misc 4 15th Feb 2010 07:59 AM
how to find my question =?Utf-8?B?am9uc2V5MzU=?= Microsoft Excel Misc 2 10th Aug 2006 06:00 PM
Re: find question Gary Keramidas Microsoft Excel Programming 0 15th Oct 2005 02:47 AM
ADO FIND question =?Utf-8?B?RGVubmlz?= Microsoft Access Form Coding 5 14th Oct 2004 02:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:27 AM.