Sub Impression_Attestation_AFF()
Dim Chemin As String
Dim NFichier As String
Dim Dot As Integer
For Dot = 1 To 12 Step 1
ActiveSheet.Range("BE6").Value = ActiveSheet.Cells(Dot, 1).Value
Chemin = Application.ActiveWorkbook.Path & Application.PathSeparator 'met le pdf au même emplacement que le fichier
NFichier = Format(ActiveSheet.Range("BE4"), " yyyy-mm-dd") & " - " & ActiveSheet.Range("BE6") & " - " & ActiveSheet.Name & " - " & Sheets("Renseignement").Range("B3") & ".pdf" 'Date de formation - Nom du stagiaire - type de document - Entreprise
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, FileName:=Chemin & NFichier, Quality _
:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False
Next Dot