Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Telling a procedure to end

I'm embarassed to be nearing the end of a beginners VBA course and still have
to ask questions like this:

How can you tell a procedure to stop when you are inside another procedure?

I have created a UserForm where if the user clicks Command Button "Listen"
it plays an mp3 file. I want that file to stop playing when the user clicks
the Command Button "Next".......But it just keeps on playing

I expected there would be a simple end, cancel, stop, finish, quit command.
But I can't get any of them to solve this

An example of one of my guesses is

Private Sub CMDnext_Click()
'Various other changes of values followed by.......
End Sub CMDlisten_Click
End Sub



Thanks once again

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Telling a procedure to end

If I have been following your threads correctly you have spawned this with
the shell command? The procedure which called the shell command ended when
the player was opened... There is no code here to end. Shell allows you to
essentially run a dos command which works independant of Excel...
--
HTH...

Jim Thomlinson


"Phil1982" wrote:

I'm embarassed to be nearing the end of a beginners VBA course and still have
to ask questions like this:

How can you tell a procedure to stop when you are inside another procedure?

I have created a UserForm where if the user clicks Command Button "Listen"
it plays an mp3 file. I want that file to stop playing when the user clicks
the Command Button "Next".......But it just keeps on playing

I expected there would be a simple end, cancel, stop, finish, quit command.
But I can't get any of them to solve this

An example of one of my guesses is

Private Sub CMDnext_Click()
'Various other changes of values followed by.......
End Sub CMDlisten_Click
End Sub



Thanks once again

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Message telling calculation is complete deeds Excel Discussion (Misc queries) 16 May 5th 08 03:28 PM
how come microsoft wont let me type? it's telling me is locked missALBANIA Excel Discussion (Misc queries) 2 January 20th 07 12:12 AM
Telling the difference between zero and blank in IF statement mindfunk Excel Worksheet Functions 1 June 30th 05 06:42 PM
Telling MSGraph which cell I need KD[_3_] Excel Programming 0 June 18th 04 12:12 PM
telling Excel to go down relatively CC[_4_] Excel Programming 3 April 22nd 04 10:59 PM


All times are GMT +1. The time now is 09:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"