Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default stack space deficiency



i want to do using recursive method. but error.

Sub f_recursive_ex(k As Long)
If k = 10000 Then Exit Sub
ActiveCell.Value = k
k = k + 1
Call f_recursive_ex(k)
End Sub

Sub recursi()

Call f_recursive_ex(1)
End Sub


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default stack space deficiency

Is there a point to try to use recursion in there instead of a For/Next or a
Do/Loop ?

--
Regards

Juan Pablo González

"tom taol" wrote in message
...


i want to do using recursive method. but error.

Sub f_recursive_ex(k As Long)
If k = 10000 Then Exit Sub
ActiveCell.Value = k
k = k + 1
Call f_recursive_ex(k)
End Sub

Sub recursi()

Call f_recursive_ex(1)
End Sub


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



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
Out of Stack Space ... Recorded Macros Ken Excel Discussion (Misc queries) 7 April 15th 10 03:53 PM
Out of Stack Space error TheMilkGuy Excel Discussion (Misc queries) 2 July 22nd 09 05:54 PM
Out of Stack Space error JimFor Excel Programming 2 December 26th 04 08:41 PM
Run time error 28: Out of stack space Will Wirtz Excel Programming 1 April 27th 04 01:39 PM
Out of Stack Space Michael Smith Excel Programming 2 February 4th 04 04:54 PM


All times are GMT +1. The time now is 04:52 AM.

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"