Option Explicit
Sub LocDSach()
Dim Rng As Range, sRng As Range, Clls As Range, cRng As Range
Dim MyAdd As String, Dem As Byte, jJ As Byte
Sheets("KQ").[A2].CurrentRegion.Offset(1).Clear
Sheets("P").Select
Set Rng = Range([F1], [F99].End(xlUp))
For jJ = 1 To 17
Set sRng = Rng.Find(jJ, , xlFormulas, xlWhole)
If Not sRng Is Nothing Then
MyAdd = sRng.Address
Do
Dem = Dem + 1
If Dem = 17 Then Exit For
Set sRng = Rng.FindNext(sRng)
Loop While Not sRng Is Nothing And sRng.Address <> MyAdd
End If
Next jJ
If jJ = 17 Then
sRng.EntireRow.Copy Destination:=Sheets("KQ").[A2]
Else
Set sRng = Rng.Find(jJ)
If Not sRng Is Nothing Then
MyAdd = sRng.Address
Do
sRng.EntireRow.Copy Destination:=Sheets("KQ").[A99].End(xlUp).Offset(1)
Set sRng = Rng.FindNext(sRng)
Loop While Not sRng Is Nothing And sRng.Address <> MyAdd
End If
End If
End Sub