Sub test()
savefichier "répertoire 1"
savefichier "répertoire 2"
savefichier "répertoire 3"
End Sub
Sub savefichier(Chemin$)
' PatrickToulon
Dim dat As Date, f, a&, oldfich$
Chemin = Chemin & "\"
BaseName = "monfichier"
dat = Now()
f = Dir(Chemin & "monfichier*.xls*")
Do While f <> ""
a = a + 1
fdt = CDate(FileDateTime(Chemin & f))
If f <> ThisWorkbook.Name Then If fdt < dat Then dat = CDate(fdt): oldfich = Chemin & f
f = Dir
Loop
If a >= 3 Then Kill oldfich
ThisWorkbook.SaveCopyAs Chemin & BaseName & "_" & Format(Now, "dd-mm-yyyy hh""H""mm""m""ss") & ".xlsm"
ActiveWorkbook.Save
End Sub