Private Sub Worksheet_Activate()
Dim tRes As ListObject, i&
Application.ScreenUpdating = False
Set tRes = Sheets("Accès site").Range("a1").ListObject
With tRes
.AutoFilter.ShowAllData
For i = tRes.ListRows.Count To 1 Step -1: tRes.ListRows(i).Delete: Next
Sheets("stagiaires").Range("a1").ListObject.DataBodyRange.Copy .Range(.ListRows.Count + 2, 1)
Sheets("Moniteurs").Range("a1").ListObject.DataBodyRange.Copy .Range(.ListRows.Count + 2, 1)
.Range.Sort key1:=.HeaderRowRange(1, 1), order1:=xlAscending, MatchCase:=False, Header:=xlYes
For i = .ListRows.Count To 1 Step -1
If .ListRows(i).Range(1, 1) = "" Then .ListRows(i).Delete Else Exit For
Next i
End With
End Sub