Hi
I am trying to open a PDF File through MS-Edge to see a particular Page but unfortunately the below code opens the Internet Explorer and I Get Error
Get Error as "Can't reach this Page"
Make sure the web address http://%22c is correct
Anyways for syntax needs to be corrected to Open PDF in MS-Edge rather than Opening in Internet Explorer and then to display Correct Page Kindly guide me
NimishK
I am trying to open a PDF File through MS-Edge to see a particular Page but unfortunately the below code opens the Internet Explorer and I Get Error
Get Error as "Can't reach this Page"
Make sure the web address http://%22c is correct
Anyways for syntax needs to be corrected to Open PDF in MS-Edge rather than Opening in Internet Explorer and then to display Correct Page Kindly guide me
VBA Code:
Private Sub UserForm_Initialize()
Dim myLink As String
Dim mypage As Long
Dim objEdge As New InternetExplorer
TextBox1.Text = "C:\123\ABC.pdf"
myLink = Chr(34) & TextBox1.Text & Chr(34)
mypage = InputBox("Enter the page number")
With objEdge
.Navigate myLink & "Page No." & mypage
.Visible = True
End With
End Sub