Sub ExportPDF()
'Déclaration des variables
Dim NomDossier As String
Dim CheminDossier As String
'Nom de dossier
NomDossier = Application.InputBox("Dossier Enregistrement :", "Fiches")
MkDir "G:\Gestion Materiel ETL\" & NomDossier
CheminDossier = "G:\Gestion Materiel ETL\" & NomDossier & "\"
'Enregistrement au format PDF
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
CheminDossier & Range("B3").Value & Format(Range("F1"), "_ddmmyy_") & Range("c1").Value & "Matériels" & ".pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
from:=1, to:=1, OpenAfterPublish:=False
End Sub