PDF Hyperlinks to open in a browser instead of Reader or Professional

Blueridge227

New Member
Joined
Mar 23, 2011
Messages
29
I have hyperlinks to PDF documents in a directory(C:\acrobat files\test.pdf) I would like to be able to open the pdf to a specific page.(c:\acrobat files\test.pdf#page=2) I realize that adding the #page= will not work from excel 2007.(it just opens to page 1 regardless)
#page=
seems to only work when used in a web browser(InternetExplorer).

So my question is, can I use VBA so that all my pdf links will open in a browser? This will enable the #page= function on the end of my hyperlinks.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try:
Code:
Sub OpenPDFpage()
    Dim IE As Object
    Set IE = CreateObject("InternetExplorer.Application")
    With IE
    .Navigate "c:\acrobat files\test.pdf#page=2"
    .Visible = True
    End With
End Sub
 
Upvote 0
Thank you for your reply.
The problem is I have over 3000 hyperlinks in my column and can't write the path name(C:\Acrobat Files\test.pdf) for every one. Is there code that will set the default app to IE whenever any link is clicked on?
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top