Sub pdf_tach()
'
' pdf_tach Macro
'
'
Dim chemin, lnow, nom, nomfichier As String
lnow = Replace(Replace(Now, "/", ""), ":", "")
nom = "Tache sauvegarde" & lnow
chemin = ActiveWorkbook.Path
nomfichier = chemin & "\" & nom & ".pdf"
ChDir chemin
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
nomfichier, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _
True
End Sub