Results 1 to 20 of 25

Thread: Make Array with Full Paths to PDF Files in Parent and Subfolders

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #14
    Just to add Ken

    If this piece of code is slightly amended to point to p instead of p2 (3rd line from bottom), then the output is nearly reached as there is no merging of the already merged files. Screen shot attached.

    Problem with it though is that Folder 1PDF_1.pdf and Folder 1PDF_1.pdf should inside the MergedFiles folder and PDF_1.pdf and PDF_2.pdf should be in the Folder 1 and Folder 2 folders respectively.

        'Merge pdfs in Subfolders, save merged file in subfolders,
            'and copy merged pdf to p2 folder.
        For i = 0 To UBound(f)
           a = aFFs(f(i) & "\*.pdf")
           If IsArray(a) Then
                j = j + 1
                pdf = f(i) & "PDF_" & j & ".pdf"
                If MergePDF(a, pdf) Then FileCopy pdf, p & "PDF_" & j & ".pdf"
           End If
        Next i
    

    Attached Images Attached Images
    • File Type: jpg p.jpg (19.3 KB, 57 views)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •