Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
WAV Files
I have a macro to play a wav file; however, I only want to play the first 30
seconds from it. Is there a way to modify my macros (see below) to stop after 30 seconds? Declare Function sndPlaySound32 Lib "winmm.dll" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long Sub GameOver() Call sndPlaySound32("C:\Sounds\Gameover.wav", 0) End Sub |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
WAV Files
Playing a wav file is an all or nothing proposition. The easiest solution
would be to modify the wav file (using any number of downloads from the internet) to only contain the first 30 seconds... -- HTH... Jim Thomlinson "Paige" wrote: I have a macro to play a wav file; however, I only want to play the first 30 seconds from it. Is there a way to modify my macros (see below) to stop after 30 seconds? Declare Function sndPlaySound32 Lib "winmm.dll" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long Sub GameOver() Call sndPlaySound32("C:\Sounds\Gameover.wav", 0) End Sub |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
WAV Files
Thanks, Jim; will do!
"Jim Thomlinson" wrote: Playing a wav file is an all or nothing proposition. The easiest solution would be to modify the wav file (using any number of downloads from the internet) to only contain the first 30 seconds... -- HTH... Jim Thomlinson "Paige" wrote: I have a macro to play a wav file; however, I only want to play the first 30 seconds from it. Is there a way to modify my macros (see below) to stop after 30 seconds? Declare Function sndPlaySound32 Lib "winmm.dll" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long Sub GameOver() Call sndPlaySound32("C:\Sounds\Gameover.wav", 0) End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Navigating to Excel files over network slow, but not Word files | Excel Discussion (Misc queries) | |||
How can I batch convert 97-2003 .xls files to 2007 .xlsx files | Excel Discussion (Misc queries) | |||
How to change default Open/Files of Type to "Microsoft Excel Files | Excel Discussion (Misc queries) | |||
how to default WritePassword under excel workbook property for any files as long as those files are the offsprings of the parent file | Excel Programming | |||
Macro to open *.dat files and save as .txt (comma delimited text files) | Excel Programming |