If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Cells.find Help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-05-07, 11:50
DennisG DennisG is offline
Registered User
 
Join Date: Sep 2005
Posts: 23
Cells.find Help

I have defined FN = to a file id. What I am trying to do is use Cells.find(What:=FN etc... instead of Cells.find(What:="1234" etc... Because I will have to find approx. 2K records against 38K. I originally took 1 records from the 2K and looped it through the 38K to find a match however its taking to long. When I use the FN it does not find the value in my sheet even though I am only using 3 records against 1. Any help would be great. Thanks
Reply With Quote
  #2 (permalink)  
Old 06-06-07, 09:13
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 714
Hi

I think you will have to give a little more info on what you have at present
ie is it anything like this

Code:
    Dim FN As Long
    FN = 123
    Cells.Find(What:=FN, After:=ActiveCell, LookIn:=xlValues, LookAt:= _
        xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
        , SearchFormat:=False).Activate
    Cells.FindNext(After:=ActiveCell).Activate
If not please give example and/or more explanation.

MTB
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On