Avatar of mgebste
mgebste

asked on 

VBA - Playing Movies using VLC or GOM Player

Hi Folks,

I have a Excel sheet with many files path, this paths refers to Movie files.

I have to create a VBA procedure that when a press a Button appears an inputbox asking the line number of the file (inputbox ("Type the right number",),1) that I want to Play. I have to Use VLC as a player or GOM Player

Can someone help me?

Best Regards
Microsoft OfficeMicrosoft AccessMicrosoft Excel

Avatar of undefined
Last Comment
Travis Hydzik
Avatar of Travis Hydzik
Travis Hydzik
Flag of Australia image

This solution will work for Windows Media Player, I am assuming it is the same for VLC, just different folder path (which I don't know the names off)

Note: your list of files with have to include the full path and extension.and located in the first row.
Quotes have been placed around the path incase of any spaces.
Sub tester()
 
    'Shell "C:\Program Files\Windows Media Player\wmplayer.exe ""D:\Documents and Settings\e331982\My Documents\Video_Conference.wmv"""
    Dim i As Integer
    i = CInt(InputBox("Type the right number"))
    Shell "C:\Program Files\Windows Media Player\wmplayer.exe """ & Cells(i, 1).Value &""
 
End Sub

Open in new window

Avatar of mgebste
mgebste

ASKER

Thanks it  is working properly.

But it is playing on the background, how can I play it full screen:?

Best regards
ASKER CERTIFIED SOLUTION
Avatar of Travis Hydzik
Travis Hydzik
Flag of Australia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Microsoft Access
Microsoft Access

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.

226K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo