Const modXL As String = "C:\Users\STAPLE\Documents\testWORD\modele.xlsx" ' à adapter
Sub test_DOC_vers_PDF_baseXLS()
'NB: Activer la référence : Microsoft Excel XX.0 Library dans Outils/Références
Dim objXL As Excel.Application, wk As Excel.Workbook, ws As Excel.Worksheet
Dim derLig As Long, Chemin As String
Chemin = "C:\Users\STAPLE\Documents\testWORD\" ' à adapter
Set objXL = New Excel.Application
Application.ScreenUpdating = False
Set wk = objXL.Workbooks.Open(modXL)
Set ws = wk.Sheets(1)
derLig = ws.Cells(objXL.Rows.Count, "E").End(xlUp).Row
For i = 2 To derLig
ActiveDocument.ExportAsFixedFormat Chemin & ws.Cells(i, "E") & ".pdf", wdExportFormatPDF
Next
wk.Close savechanges:=False
objXL.Quit
End Sub