Open a PDF using VBA in Excel

后端 未结 5 1889
南笙
南笙 2020-12-10 15:18

I\'m trying to open all appropriate PDFs found in the same directory as my Excel workbook using VBA. I\'ve added the Adobe Acrobat xx.x Type Library reference to the projec

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-10 15:43

    If it's a matter of just opening PDF to send some keys to it then why not try this

    Sub Sample()
        ActiveWorkbook.FollowHyperlink "C:\MyFile.pdf"
    End Sub
    

    I am assuming that you have some pdf reader installed.

提交回复
热议问题