Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi,
I have a list of item codes on sheet3 that I wish to compare against another list on sheet1, and if any of the items in the list on sheet3 match those on sheet one do something. I have the following code but think it's very slow and can be improved on, can anyone help me please? So far my code only works on one cell on sheet three, it needs to read a list, one at a time. Private Sub Find_Store() Row = 1 found = False check = IsEmpty(Range("Sheet1!A" & Row)) While (check = False) a = Range("Sheet1!A" & Row).Text If a = Cells.Range("c1").Text Then found = True foundrow = Row End If Row = Row + 1 check = IsEmpty(Range("Sheet1!A" & Row)) Wend If found = True Then find_row = foundrow Else find_row = -1 End If End Sub Please help. Dean -- http://www.dkso.co.uk/ http://homepage.ntlworld.com/dkso |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Update master list with other lists | Excel Worksheet Functions | |||
How do I find the cell address of the 2nd largest of a set? | Excel Discussion (Misc queries) | |||
How do I find data from a list (or table) and insert it in a row? | Excel Discussion (Misc queries) | |||
Find a duplicate value within a list? | Excel Worksheet Functions | |||
How do I find out what items are in one list but not in another l. | Excel Discussion (Misc queries) |