Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 | |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
printing to file | Excel Discussion (Misc queries) | |||
Printing to PDF file... | Excel Discussion (Misc queries) | |||
Error 1004 in printing .ps (postscript) file from .xls file | Excel Programming | |||
Help printing to PDF file | Excel Programming | |||
printing to a PDF file | Excel Programming |