Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
kyle''s kyle''s is offline
external usenet poster
 
Posts: 11
Default add a toolbar icon in Word that opens up a particular PDF document

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
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default add a toolbar icon in Word that opens up a particular PDF document

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
Word MVP web site http://word.mvps.org



kyle''s wrote:
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



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
kyle''s kyle''s is offline
external usenet poster
 
Posts: 11
Default add a toolbar icon in Word that opens up a particular PDF docu

Thank you so much, you help is greatly appreciated!

"Graham Mayor" wrote:

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
Word MVP web site http://word.mvps.org



kyle''s wrote:
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




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
File | New Toolbar Icon - Word 2003 PT New Users 2 February 9th 07 03:21 AM
Place envelope icon on Word toolbar Forrest Nettles Microsoft Word Help 1 July 7th 05 04:49 AM
Place Envelope icon on Word Toolbar Forrest Nettles Microsoft Word Help 2 July 7th 05 04:38 AM
Word toolbar in IE 6 email icon unavailable Steve Rowe Microsoft Word Help 0 March 24th 05 02:13 AM
Adobe PDF icon on Toolbar within Word Gigi Microsoft Word Help 0 January 27th 05 04:27 PM


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

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"