How to I open from MS Word 2010 a PDF document to a particular Named Destination?

I use the code below (obtained through a previous question on EE) to open a PDF to a particular page from a Word 2010 VBA macro. In addition to opening to a particular page, I would also like to have another Word 2010 VBA macro that would open a PDF to a particular Named Destination in the PDF. I am unable to figure out how to do this. I presume it involves changing the line below:
    AVDoc.GetAVPageView.GoTo pg
into some other call to something like AVDoc.GoToNamedDestinantion ("MyNamedDest"), but I am unable to figure it out or find it in the Adobe API documentation. Any help would be appreciated.


Sub OpenAdobeDocAtPage()

    Dim mypath As String
    Dim pg As Integer
    mypath = "c:\Users\Rob\Documents\myPDF.pdf"
    pg = 13
    Set AcroApp = CreateObject("AcroExch.App")
    Set AVDoc = CreateObject("AcroExch.AVDoc")
    AVDoc.Open mypath, ""
    Set PDDoc = AVDoc.GetPDDoc
    AVDoc.GetAVPageView.GoTo pg 'put whatever page you want to go to
                                'there but keep in mind that page 1 is 0
End Sub

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Word

From novice to tech pro — start learning today.