Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a pdf file at a certain page via vba 1

Status
Not open for further replies.

Roosters

Technical User
May 14, 2000
61
AU
Hi All,
Just throwing this one out there for any thoughts. Can I open a pdf file at a desired page via vba. Opening the file is easy but to a desired page has me stumped!
Any ideas would be much appreciated.
Thanks Phil
 
Can you post the PDF opening code you have so far


In order to understand recursion, you must first understand recursion.
 
This worked for me using Excel/VBA

Sub TestPDFlink()
Dim IE As Object, strFile As String, iPageNum As Long
strFile = "C:\test.pdf"
iPageNum = 3
Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate strFile & "#Page=" & iPageNum
IE.Visible = True
End Sub


In order to understand recursion, you must first understand recursion.
 
Perfect - thanks taupirho, works like a treat. Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top