VBA Joining an External PDF to Excel Print to PDF

pricebm17

New Member
Joined
May 10, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hey everyone,

I'm not sure if this is possible within VBA, but just thought I'd throw it out and see.

I have an Excel workbook that I'm turning into a proposal generator. One function will print certain sheets from the file to PDF using ExportAsFixedFormat. I have that code running correctly.

I will also have hyperlinks within the file to various PDFs saved in a shared storage drive. For example: "H:\Folder\File.pdf"

I am curious if there is a way within VBA to open one of those hyperlinks and print it to PDF as part of the same file as the Excel sheets being printed. Any help would be greatly appreciated. Thanks!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
There are command line tools available to merge PDFs, callable from VBA, for example PDFtk Server and PDFfill. See these threads for example code:


 
Upvote 0

Forum statistics

Threads
1,214,825
Messages
6,121,787
Members
449,049
Latest member
greyangel23

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