Applying FIND Function on a Compound word

  • Thread starter Thread starter sylink
  • Start date Start date
S

sylink

Column C contains names with some containing the word "LTD" I need to
find and activate the cell with names containing the word "LTD" E.g
"NIGERTEQ COMMUNICATION LTD"

I have applied the codes below without success:

Selection.Find(What:="LTD", After:=ActiveCell _
, LookIn:=xlValues, LookAt:=xlWhole _
, SearchOrder:=xlByColumns _
, SearchDirection:=xlNext).Activate

OR

Set Rng = Rows(x).Find("&LTD&")

Pls help on the right approach
 
I'd use lookat:=xlpart

dim FoundCell as range

set foundcell = selection.Find(What:="LTD", After:=ActiveCell _
, LookIn:=xlValues, LookAt:=xlPart _
, SearchOrder:=xlByColumns _
, SearchDirection:=xlNext)

if foundcell is nothing then
'didn't find it
else
foundcell.activate
end if
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top