#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 921
Default Exit Sub

Hi,

I use "Exit Sub" to exit a sub procedure. How can you exit the entire
string of precedures?

I have Sub Macro1() - calls Sub Macro2 - calls Sub Macro3.

If I am in Macro3 and want to program to stop running I have to pass an
"exit switch" all the way to Macro1. Is there a faster way to do this?

Thanks for your help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Exit Sub

I suppose that you call just stop it all

End

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Jeff" wrote in message
...
Hi,

I use "Exit Sub" to exit a sub procedure. How can you exit the entire
string of precedures?

I have Sub Macro1() - calls Sub Macro2 - calls Sub Macro3.

If I am in Macro3 and want to program to stop running I have to pass an
"exit switch" all the way to Macro1. Is there a faster way to do this?

Thanks for your help.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 921
Default Exit Sub

Wow its just that simple -

I'm surprised I've never seen that before from my readings - I also could'nt
find anything when I searched online.



"Bob Phillips" wrote:

I suppose that you call just stop it all

End

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Jeff" wrote in message
...
Hi,

I use "Exit Sub" to exit a sub procedure. How can you exit the entire
string of precedures?

I have Sub Macro1() - calls Sub Macro2 - calls Sub Macro3.

If I am in Macro3 and want to program to stop running I have to pass an
"exit switch" all the way to Macro1. Is there a faster way to do this?

Thanks for your help.




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
Run when exit PH NEWS Excel Worksheet Functions 1 July 18th 06 03:53 PM
exit object Mike Excel Discussion (Misc queries) 4 June 10th 06 07:04 AM
Exit via macro only? Brisbane Rob Excel Discussion (Misc queries) 1 October 13th 05 01:16 PM
on exit macro ditchy Excel Discussion (Misc queries) 2 May 3rd 05 12:11 AM
Save & Exit Anthony Excel Worksheet Functions 1 February 12th 05 05:23 PM


All times are GMT +1. The time now is 01:05 PM.

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

About Us

"It's about Microsoft Excel"