Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, [k1]) Is Nothing Then
Dim Rng As Range, sRng As Range, Sh As Worksheet
Dim Jj As Integer, MyAdd As String, SoNg As Integer
Set Sh = Sheet1
Set Rng = Sh.Range(Sh.[A9], Sh.[A65500].End(xlUp))
[a10].Resize(Rng.Rows.Count, 9).ClearContents
SoNg = [k1].Value - [j1].Value
For Jj = 0 To SoNg
Set sRng = Rng.Find(Jj + [j1].Value, , xlFormulas, xlWhole)
If Not sRng Is Nothing Then
MyAdd = sRng.Address
Do
With [A65500].End(xlUp).Offset(1)
.Resize(, 9).Value = sRng.Resize(, 9).Value
End With
Set sRng = Rng.FindNext(sRng)
Loop While Not sRng Is Nothing And sRng.Address <> MyAdd
End If
Next Jj
End If
End Sub