Open PDF File Using Excel VBA

We can open a PDF file from within MS Excel using VBA.

Watch the video below:

You can also view the video on YouTube.


As you can observe opening a PDF file from within Excel using VBA requires a single line of VBA code.

Sub openPDF()
ThisWorkbook.FollowHyperlink “C:\Users\takyar\Desktop\test-save.pdf”

End Sub

Download a sample file by clicking on the Excel icon:


One thought on “Open PDF File Using Excel VBA

Leave a Reply

Your email address will not be published. Required fields are marked *