Use o método Range Find em uma coluna específica
Estou mexendo nisso há um tempo, tenho o código abaixo funcionando, mas ele pesquisa mais do que gostaria. Gostaria apenas de pesquisar a coluna C e não a folha inteira. Eu tentei mudar oCells.Find
paraRange("C1:C10000").Find
mas ele não retorna correspondências.
Realmente perplexo neste.
Dim r As Range
Set r = Sheets("State Agent List").Range("C1:C10000").Find(What:=ComboBox22.Value, _
After:=ActiveCell, LookAt:=xlPart, SearchOrder:=xlByRows)
If Not r Is Nothing Then
r.Select
ActiveWindow.ScrollRow = ActiveCell.Row
Else
MsgBox "Location not listed."
End If