Sub test3()
Dim Nom As String
Nom = Range("A1")
Worksheets("Exemple").Range("A1:M42").ExportAsFixedFormat Type:=xlTypePDF, _
Filename:="Y:\Projet alternant\test\"&Nom&".pdf", _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=False
End Sub