View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 6,953
Default Opening a pdf file with Adobe Reader

Private Sub CommandButton1_Click()
Shell "Start.exe ""D:\My Documents\sm569_Jan2001\tute6.pdf"""

End Sub

--
Regards,
Tom Ogilvy


"Otto Moehrbach" wrote:

Excel XP & Win XP
I'm trying to get the code for opening a pdf file with my Adobe Reader. I
can easily open the file by just double-clicking the file name, but not by
code, so the reader is operating correctly.
What is the proper code syntax to open, say, "TheFile.pdf", in the path
"ThePath"? Thanks for your time. Otto