vba LookA:t::=

  • Thread starter Thread starter oldjay
  • Start date Start date
O

oldjay

Using Cells.Find
Can't seem to find any other options for x1Whole in.

LookAt:= _
xlWhole

As I have it now, you must type in the whole word or words
to find a customer in a long list. I want to type in the
first couple of letters to get near the customer entry
 
try
Sub findclose()
x = Columns("e").Find("thh", lookat:=xlPart).Row
MsgBox x
End Sub
 
Hi Thanks but "Part" finds any cell that have the letters
I type. I want to find the cell with the first few letters
in the right order
if I want to find "co" and the list has Comstat and Botco
in it I dont want to find the Botco

oldjay
 
Then this might??? help

Sub findclose1()
For Each c In [e1:e12]
If Left(c, 2) = "Th" Then Cells(c.Row, 1).Select
Next
End Sub
 

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