Sub myPDF()
With Feuil7
For lig = 4 To Feuil9.[B65000].End(3).Row
.[C1] = Feuil9.Cells(lig, 2)
For k = 40 To 49
.Cells(k - 35, 3) = Feuil9.Cells(lig, k)
Next
.[A15] = Feuil9.Cells(lig, 9)
.[A17] = Feuil9.Cells(lig, 10)
chemin = ThisWorkbook.Path & "\"
fichier = .[C1]
On Error Resume Next
.ExportAsFixedFormat Type:=xlTypePDF, Filename:=chemin & fichier & ".pdf"
If Err > 0 Then
MsgBox "Impossible de créer le PDF " & .[C1], vbExclamation, "ANNULATION"
Err.Clear
End If
Next
End With
End Sub