Option Explicit
Sub genere_le_contrat()
Dim Pdf As Object, Fichiers(3)
Sheets("contrat").ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=ThisWorkbook.Path & "\" & "contrat.pdf"
Sheets("Livraison").ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=ThisWorkbook.Path & "\" & "livraison.pdf"
Sheets("P1").ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=ThisWorkbook.Path & "\" & "P1.pdf"
Set Pdf = CreateObject("pdfforge.pdf.pdf")
Fichiers(0) = ThisWorkbook.Path & "\" & "contrat.pdf"
Fichiers(1) = ThisWorkbook.Path & "\" & "livraison.pdf"
Fichiers(2) = ThisWorkbook.Path & "\" & "P1.pdf"
Fichiers(3) = "C:\Users\phlh\CGV.pdf"
Pdf.MergePDFFiles_2 Fichiers, ThisWorkbook.Path & "\" & "LEContrat.pdf", True
Set Pdf = Nothing
End Sub