svendiamond
Well-known Member
- Joined
- Jun 13, 2014
- Messages
- 1,504
- Office Version
- 365
- Platform
- Windows
I have been using this line of code to print a PDF file (from VBA in Excel) and it worked perfectly:
However, I just updated to the latest version of Adobe which is called Adobe Reader DC, and the code no longer works (no error, but it just doesn't print) even when I adjust for the new folder location. Does anyone happen to know if there is a new or different way to print a PDF file using VBA in Excel for Adobe Reader DC? I'm assuming it's the "/p /h" part that needs to change but I'm not sure.
Thank you in advance.
Code:
Shell "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe /p /h " & LocalFileName, vbHide
However, I just updated to the latest version of Adobe which is called Adobe Reader DC, and the code no longer works (no error, but it just doesn't print) even when I adjust for the new folder location. Does anyone happen to know if there is a new or different way to print a PDF file using VBA in Excel for Adobe Reader DC? I'm assuming it's the "/p /h" part that needs to change but I'm not sure.
Thank you in advance.
Last edited: