Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello, I would like to create a macro that will:
1) play a WAV file 2) wait 5 seconds 3) play the WAV file again 4) wait 10 seconds 5) play the WAV file again 6) wait 5 seconds 7) play the WAV file again Thanks!!! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Which part do you need help with.
For the "wait" use application.ontime -- Tim Williams Palo Alto, CA "One-Leg" wrote in message ... Hello, I would like to create a macro that will: 1) play a WAV file 2) wait 5 seconds 3) play the WAV file again 4) wait 10 seconds 5) play the WAV file again 6) wait 5 seconds 7) play the WAV file again Thanks!!! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Basically, I would like to know the code to play a WAV file and also the code
to have a delay between 2 commands "Tim Williams" wrote: Which part do you need help with. For the "wait" use application.ontime -- Tim Williams Palo Alto, CA "One-Leg" wrote in message ... Hello, I would like to create a macro that will: 1) play a WAV file 2) wait 5 seconds 3) play the WAV file again 4) wait 10 seconds 5) play the WAV file again 6) wait 5 seconds 7) play the WAV file again Thanks!!! |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I FINALLY FOUND IT!!! I need to run this "sound()" macro and it works...
Declare Function sndPlaySound32 Lib "winmm.dll" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long Sub PlaySound() Call sndPlaySound32("C:\Sound.wav", 0) End Sub Sub sound() Call sndPlaySound32("C:\Sound.wav", 0) Application.OnTime Now + TimeValue("00:00:05"), "PlaySound" End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sendkeys(keys,wait) how do I use wait | Excel Discussion (Misc queries) | |||
Learn Everything !!! Play something!!! | Charts and Charting in Excel | |||
Go to and play | Excel Discussion (Misc queries) | |||
How play a wav file | Excel Programming |