PDF Print

quickc2

New Member
Joined
Jun 20, 2017
Messages
22
Hi,

I am looking to create a macro that, when ran, will print a pdf version of the excel sheet, as well as a pdf that is saved in a different folder.

Sub PrintPdf()
Dim Pth As String
Pth = """\projects\Projectsin Progress\VIN\4 People\217630.pdf"" "
Dim fullCommand As String
fullCommand = """C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe"" /t " & Pth

Shell fullCommand

End Sub

That is what I had from before that seemed to be working. But it is not properly printing the pdf that is saved in a different folder. I checked and made sure that everything still had the same name. Not sure what is erroring out.

Any other ideas on how to accomplish this task?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
On what line does the error appear, and what does the error say?
 
Upvote 0

Forum statistics

Threads
1,214,878
Messages
6,122,062
Members
449,064
Latest member
scottdog129

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