Hello I have this code to copy the filtered data to the result sheet but it copies over the old data how can I make it copy under the last row it has a value
VBA Code:
Private Sub test_Click()
Set f2 = Sheets("résultat")
'f2.Cells.ClearContents
a = Me.ListBox1.List
f2.[A2].Resize(UBound(a) + 1, UBound(a, 2) + 1) = a
c = 0
'For c = 1 To NbCol
'f2.Cells(1, c) = Range(NomTableau).Offset(-1).Item(1, c)
' Next
' f2.Cells.EntireColumn.AutoFit
End Sub