Hi Rylo
Not sure how to attach a file but here is the code. Essentially, in a cell Im trying to find a 5 digit number, for example 12621 and then looking for the word enbl
34:1 1262102 Enbl
I have it right now to look for the 5 digit number and if its found look for enbl. What I would like to do is have look for both the 5 digit number and the word enbl simultaneously in one find statement. Is this possible?
Thanks
Mike
For x = 1 To (lastrowsheet2 - 1)
v = prodcodelist(x)
Set c = Worksheets("MFS").Range("c1:c1000").Find(what:=v, lookat:=xlPart)
If c Is Nothing Then
'Cells(x + 1, 7) = v & " not found" 'prodcode not found
Else
' Cells(x + 1, 6) = v & " found in cell " & c.Address
Set d = c.Find(what:="enbl", lookat:=xlPart)
If d Is Nothing Then
' Cells(x + 1, 8) = v 'dsbl
Else 'enbl code below
For t = 1 To j
If finallist(t) <> v Then
chk = chk + 1
End If
Next
If chk = j Then
j = j + 1
finallist(j) = v
Worksheets("LIST").Cells(j, 1) = v 'enbl
chk = 0
End If
chk = 0 'needs to be reset before reentering loop
End If
End If
Next
Bookmarks