VBA Open files with hyperlink

Опубликовано: 15 Май 2026
на канале: Simplified Excellence
547
4

Open any file with the hyperlink function.

Code:
Sub open_file_with_hyperlink()

Dim myLink As String

'website link
myLink = "https://www.amazon.com/"

'open link
ActiveWorkbook.FollowHyperlink "" & myLink, , True

'link of a picture/PDF/any kind of file
myLink = "C:\Users\brunduk\Documents\Tutorials\My PDF.pdf"

'open link
ActiveWorkbook.FollowHyperlink "" & myLink, , True

End Sub

-------------------------------
NEED HELP?
-------------------------------
Leave a comment with your questions, issues or projetcs and I will try to answer with a video.

-------------------------------
THANK YOU
-------------------------------
For watching my videos,
Your shares
And your comments!