Hey,
I'm using this VBA code in order to open a pdf as well as the folder the file is located.
How can I change the code so when the file is opened, the bookmarks panel will be opend as well / already displayed.
In another words, I want the atricle.pdf file to open together with bookmarks without pressing the arrow button
I'm using this VBA code in order to open a pdf as well as the folder the file is located.
VBA Code:
Function OpenPDFPage(PDFPath As String, PageNumber As Long, PageView As Integer)
ThisWorkbook.FollowHyperlink PDFPath, NewWindow:=True
End Function
Sub Open_Pdf()
On Error Resume Next
OpenPDFPage "C:\Temp\Article.pdf", 115, 2
'Page view options:
'0: Full Page
'1: Zoom to 100%
'2: Page Width
Call Shell("explorer.exe" & " " & "C:\Temp", vbNormalFocus)
End Sub
How can I change the code so when the file is opened, the bookmarks panel will be opend as well / already displayed.
In another words, I want the atricle.pdf file to open together with bookmarks without pressing the arrow button