Dim m& 'm : nombre de lignes maximum
Sub SOMMAIRE()
'ici, le code VBA de ta sub inchangé
End Sub
Private Sub Job(FX$, k As Byte, chn$)
Dim n&
With Worksheets(FX)
n = .Cells(m, 2).End(3).Row
If n > k Then .Range(chn & n).ClearContents
End With
End Sub
Sub EFFACER() 'raccourci clavier: Ctrl+Shift+R
m = Rows.Count: Application.ScreenUpdating = 0
Job "Factures", 1, "A2:O": Job "Crédits", 1, "A2:O"
Job "Sommaire", 8, "B9:E": Job "État_de_Compte", 7, "A8:M"
[A7].Select
End Sub