Sub SAVE_liste()
Application.ScreenUpdating = False
Set f = Sheets("RDV")
Set p = f.Range("A1", f.Cells(Rows.Count, "K").End(3))
dl = f.Range("A" & Rows.Count).End(xlUp).Row
Worksheets("RDV").Columns("A:K").AutoFit
chemin = ThisWorkbook.Path & "\Stables\"
If Dir(chemin, vbDirectory) = "" Then MkDir chemin
NomPDF = Month(Sheets("TB").Range("B11")) & "-" & "Liste Stables " & "" & Sheets("TB").Range("B8") & "" & Format(Sheets("TB").Range("B11"), " mmmm yyyy")
f.PageSetup.CenterHeader = " PATIENTS STABLES" & " " & Sheets("TB").Range("B8") & " " & Format(Sheets("TB").Range("B11"), " mmmm yyyy")
f.PageSetup.RightFooter = "&P de &N"
f.PageSetup.PrintArea = "$A$1:$H$" & dl
p.ExportAsFixedFormat Type:=xlTypePDF, Filename:=chemin & NomPDF, Quality:=xlQualityStandard
Set f = Nothing
Set p = Nothing
End Sub