+ Reply to Thread
Results 1 to 7 of 7

Run-time error '28' Out of stack space - Code alteration help required!

  1. #1
    Registered User
    Join Date
    05-17-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Run-time error '28' Out of stack space - Code alteration help required!

    Hi All,

    I have recently upgraded to office 2007, not one of my best choices at this moment in time however, i wonder if someone could help..

    I created a spreadsheet in excel 2003 and had no issues with the code i created. Please see attached exert from sheet, when i try to run it in 2007 i get the error code '28' and i have no idea to solve this, i have hunted around the forum but found nothing applicable to my sheet.

    If anyone could help out it would be greatly appreciated.

    Thanks in advance,

    Paul
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-14-2012
    Location
    Unknown
    MS-Off Ver
    Unseen
    Posts
    429

    Re: Run-time error '28' Out of stack space - Code alteration help required!

    Try:


    Please Login or Register  to view this content.

  3. #3
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Run-time error '28' Out of stack space - Code alteration help required!

    I am on 2010 and I have no problems running it.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  4. #4
    Registered User
    Join Date
    05-17-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Run-time error '28' Out of stack space - Code alteration help required!

    Hi InvisibleMan,

    I tried that but still fails with the same error?

    First highlighted in debug mode is -
    Set vRngInput = Intersect(Target, Range("B6:AG18"))
    Is there anything wrong with this?

    Hi JapanDave,

    I had no issues with it in 2003, i tried it on another PC with 2007 and it comes up with the same error.

    Thanks for the help guys.

    Kind regards,

    Paul

  5. #5
    Valued Forum Contributor
    Join Date
    05-14-2012
    Location
    Unknown
    MS-Off Ver
    Unseen
    Posts
    429

    Re: Run-time error '28' Out of stack space - Code alteration help required!

    To be honest, I'm not entirely sure why this would have worked in Excel 2003.

    When you change a cell, it activates the Worksheet_Change event ... fair enough? But then, within the change event, you change the Target cell (to upper case). This fires the event again ... and again ... and again ... until you get the Stack Overflow error.

    Regardless of which version of Excel you are using, I would recommend that you use:

    Please Login or Register  to view this content.

    This should make the error go away in both versions ... although Excel 2003 may have coped better for some reason.

    TIM

  6. #6
    Registered User
    Join Date
    05-17-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Run-time error '28' Out of stack space - Code alteration help required!

    InvisibleMan thank you very much! Works perfectly now.

    Much appreciated.

    Kind regards,

    Paul

  7. #7
    Valued Forum Contributor
    Join Date
    05-14-2012
    Location
    Unknown
    MS-Off Ver
    Unseen
    Posts
    429

    Re: Run-time error '28' Out of stack space - Code alteration help required!

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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