LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default match vs .find? What's better/preferred?

Hi All,

I'm writing a code to do list reconciliation, i.e., the code would
cycle through one list of account numbers and look for a match in 2nd
list and do some stuff if match found. The match always needs to be
exact.

I usually in my codes use the .find xlwhole method - something along
the lines:
dim r as long
dim c as object
set c=myrange.find MyVal, xlwhole ...

if not c=nothing then r=c.row
....
to get the row of the same account in the 2nd list.
Currently users are using a worksheetfunction Match to do the same
thing but just manually.

So, I was about to substitute that manual practice with a code and use
the .find instead of the appliation.worksheetfunction.match (or
application.match) but before I do that I thought i'd rather check
with experts here whether the .find xlwhole is in no way inferior to
the Match(Range,Val,0) function currently utilized.
The searched/matched values might be both Integers and also Strings
(rather long ones - maybe 20-30 chars) - does the string lenght make
any difference?

Any considerations appreciated!
 
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
can i set a preference so files always open to my preferred zoom mary Setting up and Configuration of Excel 1 December 26th 09 07:03 PM
Is there a preferred protocol for alignment of numbers in a colum Michelle Excel Discussion (Misc queries) 3 December 15th 09 03:54 PM
Adjusting numbers to nearest preferred number BRob Excel Worksheet Functions 1 May 1st 08 11:16 AM
preferred method for summing Gary Keramidas Excel Programming 4 September 15th 06 06:37 PM
preferred app? nastech Excel Discussion (Misc queries) 0 November 25th 05 03:16 PM


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