Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
printing to file jackrobyn1 Excel Discussion (Misc queries) 0 April 5th 08 03:01 PM
Printing to PDF file... ShadowMind Excel Discussion (Misc queries) 0 August 29th 06 09:39 PM
Error 1004 in printing .ps (postscript) file from .xls file chemburkar[_2_] Excel Programming 2 February 5th 04 11:33 PM
Help printing to PDF file Karl Schmidt Excel Programming 4 December 23rd 03 07:47 PM
printing to a PDF file Tom S[_3_] Excel Programming 3 August 12th 03 09:34 PM


All times are GMT +1. The time now is 04:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"