Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a user form with command buttons cmdPlay and cmdExit. cmdPlay_Click has the following code: Private Sub cmdPlay_Click() sndPlaySound32 "C:Welcom98.wav", 0 End Sub This wave file plays for 30 seconds. cmdExit_Click has the following code: Private Sub cmdExit_Click() End End Sub After clicking cmdPlay, if I am clicking cmdExit then the program is not ending immediately. It is waiting for the wave file to finish playing for 30 seconds. Is it possible that when cmdExit is clicked, within 30 seconds, then the program should end immediately rather than waiting for the whole 30 seconds. Thanks & Regards, Prasad Vanka |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
2007 Form Control/ActiveX Control font difference | Excel Discussion (Misc queries) | |||
copy back macro/roll back | Excel Worksheet Functions | |||
Pass control back to Excel window | Excel Worksheet Functions | |||
Set Focus Problem for textbox control on multipage control | Excel Programming | |||
Calendar Control: Can't exit design mode because control can't be created | Excel Programming |