Hi, Lambert,
could you please wrap the code with Code-Tags? 
Please try if this is what you are looking for
Sub EF918610()
Dim lngNextRow As Long
Dim strMyString As String
Dim strAddress As String
Dim rngFound As Range
Dim blnLoop As Boolean
strMyString = InputBox("Enter the number you wish to find")
With Sheets("Sheet1")
lngNextRow = .Cells(Rows.Count, "A").End(xlUp).Row + 1
End With
With Sheets("ww1186")
Set rngFound = .Cells.Find(What:=strMyString, after:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext)
If Not rngFound Is Nothing Then
strAddress = rngFound.Address
blnLoop = True
Sheets("Sheet1").Rows(lngNextRow).Value = rngFound.EntireRow.Value
lngNextRow = lngNextRow + 1
Do While blnLoop
Set rngFound = .Cells.FindNext(after:=rngFound)
If rngFound.Address <> strAddress Then
Sheets("Sheet1").Rows(lngNextRow).Value = rngFound.EntireRow.Value
lngNextRow = lngNextRow + 1
Else
blnLoop = False
End If
Loop
Else
MsgBox "Could not find " & strMyString & " anywhere on this sheet.", , "Unsuccessful search"
End If
End With
End Sub
Ciao,
Holger
Bookmarks