Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default another question about find

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



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default another question about find

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




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default another question about find

ok, jim, thanks.

--


Gary


"Jim Thomlinson" wrote in message
...
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
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
How do I find my question? billnock Excel Discussion (Misc queries) 4 February 15th 10 07:59 AM
how to find my question jonsey35 Excel Discussion (Misc queries) 2 August 10th 06 06:00 PM
find question Gary Keramidas Excel Programming 3 October 15th 05 03:40 AM
find question Gary Keramidas Excel Programming 0 October 15th 05 02:47 AM
VBA .Find question Mark1 Excel Discussion (Misc queries) 6 December 3rd 04 08:29 PM


All times are GMT +1. The time now is 02:52 AM.

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

About Us

"It's about Microsoft Excel"