+ Reply to Thread
Results 1 to 7 of 7

Macro Array "Out of memory" any way around this?

  1. #1
    Forum Contributor
    Join Date
    09-07-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    358

    Macro Array "Out of memory" any way around this?

    Hey, the following macro is coming up with a debug error because I assume the data range im looking at is too big.

    In the macro you can see rndTbl is looking at "wsList.Cells(3, "E").End(xlToRight).Offset(1)" in my sheet this goes across over 10,000 columns

    Can I get around this anyway?

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    09-07-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Macro Array "Out of memory" any way around this?

    I still haven't been able to fix this, I don't know a solution around this error.

  3. #3
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Macro Array "Out of memory" any way around this?

    Wich line is giving you the error.

    What does the ubound(arrTbl) return?
    Please take time to read the forum rules

  4. #4
    Forum Contributor
    Join Date
    09-07-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Macro Array "Out of memory" any way around this?

    The error is thrown up on:

    Dim arrTbl As Variant: arrTbl = rngTbl.Value

    I'm not sure how you want me to run:
    ubound(arrTbl)

  5. #5
    Forum Contributor
    Join Date
    09-07-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Macro Array "Out of memory" any way around this?

    I have looked into other ways of doing this but I still can't get it working

  6. #6
    Forum Contributor
    Join Date
    09-07-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Macro Array "Out of memory" any way around this?

    Bump as I still can't find a solution.

  7. #7
    Forum Contributor
    Join Date
    12-28-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    280

    Re: Macro Array "Out of memory" any way around this?

    Hi

    Perhaps you could explain what your ultimate aim is and why you need to create a such a mahoosive array. I think you will need an alternative. You've mentioned the total number of columns (over 10,000!!) but how many records (rows) are we talking?

+ 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