Printing a .pdf file
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 |
Printing a .pdf file
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 wrote in message ups.com... | 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 | |
All times are GMT +1. The time now is 08:04 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com