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

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
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,216,074
Messages
6,128,654
Members
449,462
Latest member
Chislobog

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