Open and Play a video on Internet using ActiveWorkbook.FollowHyperlink Address:=

drom

Well-known Member
Joined
Mar 20, 2005
Messages
528
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Hi and Thanks in advance!

I am trying to play a YouTube video on internet (not just open the website, I mean youtube)

If I use:

VBA Code:
ActiveWorkbook.FollowHyperlink Address:=ActiveCell.Hyperlinks(1).Address

or

VBA Code:
ActiveWorkbook.FollowHyperlink Address:="https://www.youtube.com/watch?v=FCgZ3dMIotY"


I am Opening explorer and I can see the video there but in order to play the video I have to press PLAY


So, I would like, I am trying to open and Play the video directly when pressing a button, when running a macro

This video is a MrExcel Video:
https://www.youtube.com/watch?v=FCgZ3dMIotY
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi and Thanks in advance!

I am trying to play a YouTube video on internet (not just open the website, I mean youtube)

If I use:

VBA Code:
ActiveWorkbook.FollowHyperlink Address:=ActiveCell.Hyperlinks(1).Address

or

VBA Code:
ActiveWorkbook.FollowHyperlink Address:="https://www.youtube.com/watch?v=FCgZ3dMIotY"


I am Opening explorer and I can see the video there but in order to play the video I have to press PLAY


So, I would like, I am trying to open and Play the video directly when pressing a button, when running a macro

This video is a MrExcel Video:
https://www.youtube.com/watch?v=FCgZ3dMIotY

If you have /watch in your link then the video does play automatically. I just tried your code

VBA Code:
ActiveWorkbook.FollowHyperlink Address:="https://www.youtube.com/watch?v=FCgZ3dMIotY"

and it works just fine?
 
Upvote 0
Probably but does not in my PC
When I put in my inmediate window:
  • ActiveWorkbook.FollowHyperlink Address:="
    " ENTER
Open but does not play
 
Upvote 0
Tested it from another PC and it works fine. Can you please check something for me? Do you have Autoplay turned off?

1647629047697.png
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,737
Members
449,050
Latest member
excelknuckles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top