Sub test()
'
Dim FiltreActif As Boolean
FiltreActif = False
On Error Resume Next
FiltreActif = ActiveSheet.AutoFilter.Filters.Item(1).On
ActiveSheet.Range("$H$10").AutoFilter Field:=1
Range("k18:k1859").Copy
Range("I18").PasteSpecial Paste:=xlPasteValues
Range("J18:J1859").ClearContents
If FiltreActif = True Then
ActiveSheet.Range("$H$10:$H$2000").AutoFilter Field:=1, Criteria1:="<>"
End If
End Sub