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
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
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.
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.
Open in new window