Cannot open a pdf to a page via vba

tmd63

New Member
Joined
Feb 21, 2014
Messages
33
I have code to open a pdf at a page.
But it doesn't work on my home PC. The opening line is :
file:///G:/Electronics%20Magazines/Practical-Electronics/Practical-Electronics-1968/Practical-Electronics-1968-01.pdf#page=18

But it doesn't open at page 18. It only opens at page 1.
I only have Internet Explorer without Addons active. I have Firefox and Chrome but how can I use these.
If I manually used the address in IE, it opens at page 1, but Firefox and Chrome open at the correct page.

The code is
Code:
        Set IE = CreateObject("InternetExplorer.Application")
        IE.Navigate Application.ActiveWorkbook.Path & "\" & strMag & "\" & strMag & "-" & strYear & "\" & strFile & "#page=" & iPageNum
        IE.Visible = True
I am using Excel 2003 and IE 11
 

Forum statistics

Threads
1,082,071
Messages
5,363,006
Members
400,707
Latest member
CriticaIError

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top