Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
547 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Posted by Andrew Gould on 04 April 2016
Playing videos in a VBA user form is perhaps a little frivolous but it makes for a fun video! You'll learn how to add extra controls to the toolbox, how to use the Shockwave Flash Object and a little about how to use VBA's string functions to manipulate YouTube's video URLs.
See our full range of VBA training resources, or test your knowledge of VBA with one of our VBA skills assessment tests.
This video has the following accompanying files:
File name | Type | Description |
---|---|---|
Profitable Films - Pt16 Playing YouTube Videos.xlsm | Excel workbook with macros |
Click to download a zipped copy of the above files.
There are no exercises for this video.
You can increase the size of your video to make it fill the screen like this:
Play your video (the icons shown won't appear until you do), then click on the full screen icon which appears as shown above.
When you've finished viewing a video in full screen mode, just press the Esc key to return to normal view.
To improve the quality of a video, first click on the Settings icon:
Make sure yoiu're playing your video so that the icons shown above appear, then click on this gear icon.
Choose to change the video quality:
Click as above to change your video quality.
The higher the number you choose, the better will be your video quality (but the slower the connection speed):
Don't choose the HD option shown unless your connection speed is fast enough to support it!
Is your Wise Owl speaking too slowly (or too quickly)? You can also use the Settings menu above to change your playback speed.
From: | Elize |
When: | 10 Sep 21 at 13:13 |
First of all I just want to say:
Thank you so much for the informative videos on your website. I have learned so much about VBA coding although there is still a lot to learn. It comes with time.
I'm currently working on your User Forms and Video 16 - Playing YouTube Videos.
Unfortunately, Adobe discounted their Flash Player and I quote:
"Adobe Flash Player EOL General Information Page
Since Adobe no longer supports Flash Player after December 31, 2020 and blocked Flash content from running in Flash Player beginning January 12, 2021, Adobe strongly recommends all users immediately uninstall Flash Player to help protect their systems.
HELP PLEASE !!!!!!!
Is there any other FlashPlayer I can use to make my video trailers work?
From: | Andrew G |
When: | 10 Sep 21 at 13:23 |
Hi Elize,
Sorry but I don't know of an alternative Flash player control. You could use the Web Browser form control to navigate to the video player control on YouTube and play it from there. It's not an ideal solution unfortunately.
From: | Sujoy |
When: | 18 Jun 21 at 13:51 |
Shockwave Flash Player control is no longer supported.Can you show another method so that we can play youtube videos in our excel vba userform??
From: | Andrew G |
When: | 18 Jun 21 at 16:01 |
Hi there. I don't know of a direct replacement for this to stream a video directly from YouTube.
You can use the Media Player form control to play local video files https://docs.microsoft.com/en-us/windows/win32/wmp/windows-media-player-sdk
You could also use the Web Browser control to navigate to the video player control on YouTube.
Neither are really good solutions but they're the only ones I know of!
From: | Sujoy |
When: | 18 Jun 21 at 16:47 |
Thank you...
I really want to say that your videos are really good...i have downloaded all your videos and i have learnt many things from your videos...You are one of my best teacher....??
From: | Andrew G |
When: | 19 Jun 21 at 06:44 |
Thank you! I'm happy to hear that you've found the videos useful.
From: | jd.hurtado1 |
When: | 07 Feb 20 at 13:57 |
Hi Andrew
It seems that the video " Playing Youtube Videos " is not complete. There is not the multipage.
Also when I try to add the ShockWave Flash Object it appeared an error " Access Denied" .
From: | Andrew G |
When: | 13 Feb 20 at 08:53 |
Hi JD,
It seems that you're correct. I'm not entirely certain of the cause although I suspect it's due to some older controls related to the Shockwave Flash Player becoming obsolete. You can download a file with the multipage control from the previous video although I don't think that it will help with the Flash Player unfortunately!
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.