VBA LOOP, XL with SOUND OBJECT, once a minute

srands

Board Regular
Joined
Jun 24, 2010
Messages
115
Hi, I have an XL spreadsheet with a sound WAV as an EMBEDDED OBJECT, saved as a Macro.

I have another Macro, to play the WAV after a period of time.

Code:
Sub MyMacro()
'Bunch of code here
Application.OnTime Now + TimeValue("00:01:00"), "mysoundmacro"
End Sub
Code:

HOW CAN I LOOP THIS vb TO REPEAT THE CYCLE?

SEE SAMPLE FILE

Cheers

Stephan
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi could you quote the edited full sentence, as the way I have written it as suggested, the VB macro just plays the WAV file twice.

What should this macro be to play every minute?

Sub MyMacro()
Application.OnTime Now + TimeValue("00:01:00"), "mysoundmacro"
End Sub

Cheers

Stephan
 
Upvote 0

Forum statistics

Threads
1,224,531
Messages
6,179,380
Members
452,907
Latest member
Roland Deschain

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