Macro to combine multiple pdfs and create multiple outputs

Nandulal

New Member
Joined
May 3, 2023
Messages
2
Office Version
  1. 2021
Platform
  1. Windows
Dear VBA specialist,

I'm trying to write a code that will pick path and name of the PDF from the excel file and merge it or combine it, my specific requirement is it should pic PDF1 path from column A, PDF1 name from column B, PDF2 Path from column C, PDF2 name from column D, PDF3 path from column E, Pdf3 name from F and combine all the three pdf and create a new merged pdf and save in the path given in the column G and name in H, it should pic one row and create one merged PDF likewise create multiple Merged PDFs, below the example table.

Highly appreciate your help

PDF1 PathPDF1 NamePDF2 PathPDF2 namePDF3 PathPDF3 nameSaveing pathCombined file name
\\corp\aimusroot\DEPARTMENTSTest1.pdf\\corp\aimusroot\DEPARTMENTSTest1.pdf\\corp\aimusroot\DEPARTMENTSTest1.pdf\\corp\aimusroot\DEPARTMENTSFinal1.pdf
\\corp\aimusroot\DEPARTMENTSTest2.pdf\\corp\aimusroot\DEPARTMENTSTest2.pdf\\corp\aimusroot\DEPARTMENTSTest2.pdf\\corp\aimusroot\DEPARTMENTSFinal2.pdf
\\corp\aimusroot\DEPARTMENTSTest3.pdf\\corp\aimusroot\DEPARTMENTSTest3.pdf\\corp\aimusroot\DEPARTMENTSTest3.pdf\\corp\aimusroot\DEPARTMENTSFinal3.pdf

Thank you,
Nandulal
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Thank you Jhon,
I will work on it and come back to you if i face any issues
 
Upvote 0
Here is an alternative to VBA. Use Power Query to append multiple PDF files. Once combined, you can then save the Excel file back to a PDF. Easy Peasy!

 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,123
Members
452,381
Latest member
Nova88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top