azizrasul

Well-known Member
Joined
Jul 7, 2003
Messages
1,304
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
I am trying to merge 2 win2pdf files (pdf1.pdf and pdf2.pdf). I have been given the following command line to create the merged file called pdf3.pdf. Is there a way of using Shell to do this? I tried the following which didn't error but didn't do anything either.

Code:
Shell("c:\windows\system32\spool\drivers\x64\3\win2pdfe.exe append L:\pdf1.pdf L:\pdf2.pdf L:\pdf3.pdf")
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Try:
Code:
Shell "c:\windows\system32\spool\drivers\x64\3\win2pdfe.exe append L:\pdf1.pdf L:\pdf2.pdf L:\pdf3.pdf"
Remove the brackets after Shell and the closing one, since you're not returning an output
 
Last edited:
Upvote 0
Thanks for that, I amended appropriately, but still didn't produce pdf3.pdf. Am I missing something?
 
Upvote 0
Apart from searching online for you, no idea I'm afraid.

Merging pdf's by itself isn't a VBA question, suggestion I made was just based on the syntax you'd used and noticing it wasn't being returned to anything - good luck finding solution!
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,533
Members
448,969
Latest member
mirek8991

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