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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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,215,437
Messages
6,124,871
Members
449,192
Latest member
MoonDancer

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