

Set PartDocs(i) = CreateObject("AcroExch.PDDoc") MsgBox "File not found" & vbLf & p & a(i), vbExclamation, "Canceled"

If Len(Dir(p & DestFile)) Then Kill p & DestFile If Right(MyPath, 1) = "\" Then p = MyPath Else p = MyPath & "\" Sub MergePDFs(MyPath As String, MyFiles As String, Optional DestFile As String = "MergedFile.pdf")ĭim a As Variant, i As Long, n As Long, ni As Long, p As Stringĭim AcroApp As New Acrobat.AcroApp, PartDocs() As Acrobat.CAcroPDDoc SetProfileSetting "ShowProgress", "false"

SetProfileSetting "OpenWithPdfArchitect", "false" SetProfileSetting "Printing.SelectPrinter", "SelectedPrinter" SetProfileSetting "Printing.PrinterName", "PDFCreator" If fso.FileExists(v) Then oPDF.PrintFile v Set oPDF = New PDFCreator.PdfCreatorObj 'PDFCreator.clsPDFCreator Set fso = CreateObject("Scripting.FileSystemObject") Sub PDFCreatorCombine(sPDFName() As String, sMergedPDFname As String)ĭim oPDF As PDFCreator.PdfCreatorObj, q As PDFCreator.Queue ' Designed for early bind, set reference to: PDFCreator - Your OpenSource PDF Solution 'Macro Purpose: Print to PDF file using PDFCreator If vbYes = MsgBox(s, vbYesNo + vbQuestion, "Open?") Then Shell ("cmd /c " & """" & s & """")
