PDA

View Full Version : How do I use vba code for powerpoint to open a hyperlink in new window



netwerkz
03-11-2021, 11:39 AM
I have a web link on the last slide of my presentation and I want it to automatically open the link in a web browser after say 10 seconds. My hopes are to turn this presentation into an *.mp4 to upload to YouTube (which I'm doing for a lot of other presentations), but this is the first time we're wanting the viewer to be sent to a webpage after watching the presentation.

I found this on the M$ website
https://docs.microsoft.com/en-us/office/vba/api/powerpoint.presentation.followhyperlink...



ActivePresentation.FollowHyperlink _
Address:="https://bit.ly/", _
NewWindow:=True, AddHistory:=True


In itself, the VBA code works, but how do I implement it in PPT?

Any ideas?