Public Sub OK(pctg As Long)
Dim LastKRow As Long
Dim plage As Range
With Sheets("Sheet1").Range("A1:E100000")
LastERow = Cells(Rows.Count, "E").End(xlUp).Row
x = Range("E65535").End(xlUp).Value
y = x * pctg / 100
Set plage = .Find(What:=y, _
After:=.Cells(LastERow, 5), _
LookIn:=xlValues, _
LookAt:=xlPart, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
plage.Copy Sheets("filtred_data").Range("A1:E100000")
MsgBox " Nombre de communauté filtré est " & plage
End With
End Sub