Hi,
Im working within excel and have 2000+ lines of data. What im trying to do is have the system automatically search for a match between the variant and any other cells. However the vairent may have between two and four words and I would like to to always search by the second word in that cell only.
What I have so far is:
Dim value As Variant
Dim cellrange As Variant
value = Range("A680").value
cellrange = Range("A680").Address
Cells.Find(What:= _
value _
, After:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:= _
xlByRows, SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False) _
.Activate
Is there any way of searching by a particular word within a cell??
Many thanks
Andy
Im working within excel and have 2000+ lines of data. What im trying to do is have the system automatically search for a match between the variant and any other cells. However the vairent may have between two and four words and I would like to to always search by the second word in that cell only.
What I have so far is:
Dim value As Variant
Dim cellrange As Variant
value = Range("A680").value
cellrange = Range("A680").Address
Cells.Find(What:= _
value _
, After:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:= _
xlByRows, SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False) _
.Activate
Is there any way of searching by a particular word within a cell??
Many thanks
Andy