ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Open a PDF document (https://www.excelbanter.com/excel-programming/309759-open-pdf-document.html)

Naomi[_4_]

Open a PDF document
 
Hi,

How do I open a PDF file (in acrobat) from excel in VB?

Thx.

Tom Ogilvy

Open a PDF document
 
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

"Naomi" wrote in message
...
Hi,

How do I open a PDF file (in acrobat) from excel in VB?

Thx.





All times are GMT +1. The time now is 07:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com