Printing a .pdf file

  • Thread starter Thread starter michael_mcclellan
  • Start date Start date
M

michael_mcclellan

Hello there all,

I am just looking for some simple code that will go into a directory
and print a file to the default printer. Can anyone help with this?
Thanks in advance
 
Assuming you have the free Adobe Acrobat 6.0 Reader installed, this should
work:

Sub PrintPDF()
Dim Pth As String
Pth = "C:\Path2File\FileName.pdf"
Shell "C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe /p /h " &
Pth
End Sub

Adjust paths as needed.

--
Jim Rech
Excel MVP
| Hello there all,
|
| I am just looking for some simple code that will go into a directory
| and print a file to the default printer. Can anyone help with this?
| Thanks in advance
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top