add a toolbar icon in Word that opens up a particular PDF document

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am wanting to add a toolbar icon in Word 97 that opens a particular pdf
document in Adobe Reader?
Any help would be great.

Thanks
 
I can't see the point of this personally, but add the following macro to a
toolbar button

Sub OpenMyPDF()
Dim RetVal
Dim fName As String
Dim appName As String
appName = "C:\Program Files\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe"
fName = "D:\Path\Filename.pdf"
RetVal = Shell(appName & Chr$(32) & fName, 1)
End Sub

http://www.gmayor.com/installing_macro.htm

Change the line fName = to that of the path and filename of the PDF file
and
Change appName= to reflect the path and filename of your Abode Reader.


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top