Reply
 
Thread Tools Display Modes
  #1   Report Post  
yogeshspsoft yogeshspsoft is offline
Junior Member
 
Posts: 0
Arrow How to hyperlink to a specific page of an PDF file from MS Word 2007 using VBA/VB 6.0

Hello All:

From MS word 2007, want to Hyperlink to the specific page of an PDF file 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 with making it work

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

page (Page# 1) always

Thank you for your valuable time and help

Thanks,
Yogesh
Attached Files
File Type: zip Hyperlink.zip (3.4 KB, 226 views)
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
hyperlink to specific page in a long PDF Ludite Microsoft Word Help 2 August 16th 10 11:07 AM
How to make hyperlink in Word go to specific page in pdf file? Word link to specific page in pdf file Microsoft Word Help 1 May 13th 09 03:31 PM
Hyperlink in word to a specific paragraph in a .pdf doc Jim Microsoft Word Help 4 July 29th 08 04:25 PM
Is a Hyperlink to a specific PDF page possible? binar Microsoft Word Help 4 October 20th 07 01:12 AM
How do I link from Word to a specific page in a PDF file? MSchwartz Microsoft Word Help 1 October 25th 06 08:05 PM


All times are GMT +1. The time now is 11:38 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"