View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Subject: Opening a PDF document from Visual basic

Sub Tester2a()
Shell "C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe" & _
" c:\toc1\amcr37-4.pdf", 1
End Sub

or if you have .pdf associated with acrobat reader:

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

are possibilities.

--
Regards,
Tom Ogilvy

" wrote in
message ...
It doesn't seem to work, do you have any alternatives


-----Original Message-----
Use the Shell command

Shell "C:\files\myfile.pdf"

assumes pdf is associated with a reader application that

can open PDF files.

--
Regards,
Tom Ogilvy

"Klaus" wrote in message
...
How do I open a pdf document from visual Basic in excel



.

.