• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Find in table equal to the value of a cell

OK so it's found; what do you want to do with the information? Tell the user the address of the cell? Highlight the cell(s)? Return information from the same row? What?
 
Beacuse on Plan1 you have a proper Excel table called Tabela1, you can use another code:
Code:
Sub findnumber2()
With Range("Tabela1").ListObject
  FindS = .Parent.Range("A2").Value
  Set Rng = .ListColumns(1).DataBodyRange.find(What:=FindS, LookIn:=xlValues, LookAt:=xlWhole, MatchCase:=False, searchformat:=False)
  If Not Rng Is Nothing Then
    Application.Goto Rng, True
  Else
    MsgBox "Não Encontrado"
  End If
End With
End Sub
This is run by clicking the button on that sheet in the attached.
 

Attachments

Back
Top