So I have this Workbook with 3 sheets, I collect some data from "Plan1" and output the filtered content to "Plan2". Them I´ve built the following code to search and match the sorted output with "Plan3" and select the matching items.
Problem is, it is only selecting 1 value on "Plan3" instead of all the matching ones. can someone point me in the right direction?
Below is the code I´ve written - and YES I´m new to vba and my code is really basic.
Sub Compara()
Dim cell As Range
Dim temp As Range
For Each cell In Sheets("Plan2").Columns("C").Cells
If cell <> "" And cell.Row <> 1 Then
Set temp = Sheets("Conciliacao").Columns("C").Find(What:=cell.Value, _
LookIn:=xlFormulas, _
LookAt:=xlPart, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext)
If Not temp Is Nothing Then
ThisWorkbook.Sheets("Conciliacao").Select
temp.EntireRow.Select
End If
End If
Next
End Sub
Thanks in advance,