+ Reply to Thread
Results 1 to 10 of 10

Out of stack space error

  1. #1
    Registered User
    Join Date
    06-10-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    37

    Out of stack space error

    Thanks for all the help you guys have given me!

    So I'm still working on the same sheet, just working out the kinks... for some reason I'm running out of stack space? Here is where the debugger is taking me. I have zero clue what's wrong, any advice?
    13241234.png

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Out of stack space error

    Try turning off events at the start of the code with this,
    Please Login or Register  to view this content.
    but don't forget to turn them back on at the end.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    06-10-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    37

    Re: Out of stack space error

    This hasn't solved it, for some reason I'm still getting that error, any idea why? Could it be caused by some other part of my code? Why would it send me there?

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Out of stack space error

    Any chance you could upload a sample workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

  5. #5
    Registered User
    Join Date
    06-10-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    37

    Re: Out of stack space error

    I would like to, but there is way to much sensitive information in the file. Is there simply a different way that I could do what I'm trying to do and see if that fixes it? Maybe and IF statement?

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Out of stack space error

    When you get the error click Debug, goto View>Call Stack (CTRL+L).

    What's listed there?

  7. #7
    Registered User
    Join Date
    06-10-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    37

    Re: Out of stack space error

    6456456456.png This is all the call stack will let me see without scrolling

    EDIT** Would you like me to paste ALL of my code?

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Out of stack space error

    That means the Change event of Sheet1 is being called over and over again.

    To stop that happening you need to disable events as I suggested.

    Is the code you posted for Sheet1?

    If it is how did you try what I suggested?

    PS Can you post the code instead of a picture?

  9. #9
    Registered User
    Join Date
    06-10-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    37

    Re: Out of stack space error

    Here is the entirety of my code
    Please Login or Register  to view this content.
    I tried what you told me to do, but I deleted it because it didn't do anything. "sheet1" I just deleted, because I do not need it, the code is all for "Hartland"
    If I haven't answered anything or if you need clarification, let me know! Thanks!

  10. #10
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Out of stack space error

    How did you try what I suggested?

    Also, where is the code you posted located?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Run TIme Error 28: Out of Stack Space
    By smciesl2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-22-2014, 01:21 PM
  2. Run Time Error 28: Out of Stack Space
    By Shanahan0 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-10-2013, 10:42 AM
  3. Run-time error '28' Out of stack space
    By pinkpantherksa in forum Excel General
    Replies: 1
    Last Post: 12-13-2012, 06:33 PM
  4. Excel Error: 28 Out of Stack space
    By AinMn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2010, 01:24 AM
  5. Out of stack space error
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-20-2008, 03:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1