+ Reply to Thread
Results 1 to 3 of 3

In VBA can I avoid "out of stack" error by using cells instead of arrays?

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    52

    In VBA can I avoid "out of stack" error by using cells instead of arrays?

    I will have to work with a lot data (mostly integers, and some small strings). I estimate that I will need to store thousands or tens of thousands pieces of these bits of information. My question is whether I should store them in arrays or excel cells in order to avoid "out of stack" error.

    As far as I understand stack is working memory, so the question could also be whether cell contents are stored there. (I have never got "out of stack" even when I used much more cells, that's why I think using cells is a solution)

    Alternatively is there another place (like special type of arrays, or a program like notepad) where I can store the data without it using working memory? Preferably this other place would be faster to read/write than excel cells.
    Last edited by tahi.laci; 08-03-2014 at 08:04 AM.

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: In VBA can I avoid "out of stack" error by using cells instead of arrays?

    If you use cells rather than VBA arrays, you may avoid stack problems, but the code will run slower.
    Gary's Student

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: In VBA can I avoid "out of stack" error by using cells instead of arrays?

    Tens of thousands of items is no problem. Tens of millions might be a problem.
    Entia non sunt multiplicanda sine necessitate

+ 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] "Out of Stack Space" error vba Excel 2010
    By Taemex in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-05-2014, 02:40 AM
  2. [SOLVED] Avoid "Error! No document variable supplied"
    By GCW esq in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2012, 10:08 PM
  3. Error: "Out of stack space"
    By richbennett in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2010, 05:07 AM
  4. Select defined cells and "stack"
    By Ludo in forum Excel General
    Replies: 3
    Last Post: 01-06-2009, 09:41 AM
  5. Run time error - "out of stack space"
    By Tempy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-16-2005, 02:01 AM

Tags for this Thread

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