playing sound of the team what is needed to play in the next round

siebrenbeens

New Member
Joined
Nov 12, 2017
Messages
18
good evening,

i have a excelfile with a complete competition of a volleybal tournament. what i am looking for is a code that calls out specific sound files (team names spoken) when a specific team needs to play in the next round of the tournament

i hope some1 can help me out.

best regards,

siebren beens
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
As far as I know you'd need to insert the sound files as objects Insert>Object.

Then use a line like this to play the file (this is from a recorded macro):

Code:
Sub [COLOR=#333333]Playsound1()[/COLOR]
ActiveSheet.Shapes.Range(Array("Object 1")).Select
Selection.Verb Verb:=xlPrimary
End Sub

If you want it to run at certain times:

Code:
[COLOR=#333333]Application.OnTime TimeValue("15:00:00"), "Playsound1"[/COLOR]
 
Upvote 0
Do you have the sound files attached to the sheet?

How do you currently get them to play?

Do they need to play at fixed times?
 
Upvote 0
if i have the code i am going to create soundfiles corresponding to the teamnames.

currently we are using a microphone.

and yes, the matches have a constant interval of 12 minutes.

if you want i can attach the file i am working with.
 
Upvote 0
@ mole999 yeah i have seen that function, but that won't be an option, because itare dutch teamnames, so it would sound like **** :):)
 
Upvote 0
there are preset times when the match starts. so is it possible to compare system time with the preset matchtime. and then call the soundfiles corresponding with the teamnames 2 minutes before the start of the match
 
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,301
Members
452,633
Latest member
DougMo

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