Give this a try. You did not specify which column to search in so this code assumes you want to search in the active cell column. This code uses filtering to copy all (exact) occurrences of the search term to Sheet2.
Option Explicit
Sub Find_and_Copy()
Dim lastrow As Long, lCol As Long, sCriteria As String
lCol = ActiveCell.Column
lastrow = Cells(Rows.Count, lCol).End(xlUp).Row
sCriteria = Application.InputBox("Enter a search term", Type:=2)
If sCriteria = vbNullString Then Exit Sub
Application.ScreenUpdating = False
With Sheet1
.AutoFilterMode = False
If WorksheetFunction.CountIf(.Range(.Cells(1, lCol), .Cells(lastrow, lCol)), sCriteria) < 1 Then
MsgBox "The search term is not listed in the active cell column"
Exit Sub
End If
.Range(.Cells(1, lCol), .Cells(lastrow, lCol)).AutoFilter field:=1, Criteria1:="=" & sCriteria
.Range(.Cells(1, lCol), .Cells(lastrow, lCol)).SpecialCells(xlCellTypeVisible).Copy Sheet2.Cells(Rows.Count, "A").End(xlUp).Row + 1
.AutoFilterMode = False
End With
Application.ScreenUpdating = True
End Sub
Bookmarks