LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Passing a Sub's name as parameter

As I understand what you want to do, it can't be done.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Sergey_vba"
wrote
in message
...

I have complicated code in which two procedures call each other
many
times (without ending). This cycle may last quite long
depending on the
value entered by user.

The sub will stop under certain conditions, but some times
"calls
stack" memory is not enough and I get "out of stack error".

So when code "jumps" from Sub1 to Sub2, I'd like to End Sub1
from
Sub2.

Thank you,
Sergey




In general, VBA will only execute one procedure at a time - if
you
call
another sub or function, execution of the first suspends until
the
one you
called is done. So I am not clear on what you want to do -
please
give more
details.


"Sergey_vba" wrote:



Hi all,

how can I end one procedure from another?

Thank you,
Sergey


--
Sergey_vba



--
Sergey_vba
------------------------------------------------------------------------
Sergey_vba's Profile:
http://www.excelforum.com/member.php...o&userid=24437
View this thread:
http://www.excelforum.com/showthread...hreadid=380462



 
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
Passing parameter to a query Dwaine Horton[_3_] Excel Programming 6 April 26th 05 02:24 AM
?Passing argument/parameter just starting[_2_] Excel Programming 0 October 23rd 04 07:56 PM
?Passing argument/parameter just starting Excel Programming 1 October 23rd 04 04:23 PM
Passing a parameter to Excel keepitcool Excel Programming 3 August 13th 03 03:57 AM


All times are GMT +1. The time now is 10:24 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"