How to hyperlink to a specific page of an PDF file from MS Word 2007 using VBA/VB 6.0

Y

yogeshspsoft

Hello All:

From MS word 2007, want to Hyperlink to the specific page of an PDF fil
but it always opens the first page of the PDF file

Using:
StrLocationFileNm = TxtPDFFile.Text & "#page=5"
ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range
Address:=StrLocationFileNm, SubAddress:="", ScreenTip:="", _
TextToDisplay:="Read More..."

Attached it the code that is not working. If someone can help me wit
making it work

Code Working Prerequisite: VB 6.0
Open word document. Place your cursor where you want the hyperlink tex
"Read More..." to appear.
Execute the application, Select "Hyperlink" menu, Select the PDF fil
and its page number to be hyperlinked.
Then click on "Link" button.
In the word document the link "Read More..." will appear that shoul
open the PDF file at specific location but it open the PDF file at firs


page (Page# 1) always

Thank you for your valuable time and help

Thanks,
Yoges

+-------------------------------------------------------------------
|Filename: Hyperlink.zip
|Download: http://www.wordbanter.com/attachment.php?attachmentid=118
+-------------------------------------------------------------------
 

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

Top