+ Reply to Thread
Results 1 to 11 of 11

Strange "Excel cannot complete this task with available resources" behaviour

  1. #1
    Registered User
    Join Date
    01-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    19

    Strange "Excel cannot complete this task with available resources" behaviour

    I am working on a large Excel 2003 workbook A (around 115MB) on a Vista 64 machine with plenty of RAM (50GB or so...).
    Starting from a fresh boot and not opening any other applications, I am trying to copy a large table of random numbers that lives on workbook B into a new sheet(tab) of workbook A.

    I have tried various methods (copy paste by text, DDE [don't ask], manual, programatic) and have even tried to break the task into smaller and smaller chunks in between which I clear the clipboard using user32 calls EmptyClipboard and CloseClipboard as per http://social.msdn.microsoft.com/For...b-276864d7c28d

    However the problem is bizarly always the same, at around the 62,000th row I get the "Excel cannot complete this task with available resources" error message.
    However I can happily continue to copy and paste data so long as it isn't south of row 62,000 or thereabouts, which points to the problem being something other than memory resource exhaustion (Additionally I have been running 350MB sheets on this machine for years without a problem so a simple out of memory diagnosis doesn't quite fit)

    Any ideas as to what this may be and how to resolve it?

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,291

    Re: Strange "Excel cannot complete this task with available resources" behaviour

    A file of 350 MB is very very very huge!!!!
    Do you know why it is so big?
    Excel 2003 has a maximum of 65000 rows, may be thats the problem.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Registered User
    Join Date
    01-16-2012
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Strange "Excel cannot complete this task with available resources" behaviour

    Excel 2003 only allows so many rows (65535) and columns (256). Follow the link below for all the specifics.

    http://office.microsoft.com/en-us/ex...005199291.aspx

  4. #4
    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: Strange "Excel cannot complete this task with available resources" behaviour

    Are you doing this manually or with code?
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    01-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Strange "Excel cannot complete this task with available resources" behaviour

    Let me answer in turn

    The sheets are large for various reasons, but mostly because they store large tables of random numbers and precalculated multidimensional surfaces. I could store these in separate files with some non trivial amount of work but as I was saying, I don't think memory is the problem in the case of this 115MB workbook (in light of my perfectly functioning 350MB workbooks)

    I am well aware of Excel 2003's basic limits including the 65,536 row limit and 1GB RAM limit (my preffered source for this info is http://www.decisionmodels.com/memlimitsc.htm)
    The problem arises around the 62,000 row (well short of the 65,536 row limit). Bizarly, even after I encounter the problem I can still paste 10s of MB of data onto the sheet as long as it is above the 62,000 (or therabouts) row.

    Are you doing this manually or with code? This is for a one off copy and paste so initially tried manually. As I have been having trouble I have also tried programatically. The problem seems to be the same either way.

    After some more playing around, I have established that the failure only occurs on the new sheet(tab). I can paste the data without issues on the other sheets. The trouble is that I need a new sheet (all columns and rows) to fit all of the data
    Last edited by TheKid; 05-10-2013 at 06:07 PM. Reason: Further information

  6. #6
    Registered User
    Join Date
    01-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Strange "Excel cannot complete this task with available resources" behaviour

    Any ideas?

  7. #7
    Registered User
    Join Date
    04-13-2012
    Location
    UK
    MS-Off Ver
    Excel 03 and 10
    Posts
    25

    Re: Strange "Excel cannot complete this task with available resources" behaviour

    Quote Originally Posted by TheKid View Post
    I am working on a large Excel 2003 workbook A (around 115MB) on a Vista 64 machine with plenty of RAM (50GB or so...).
    Starting from a fresh boot and not opening any other applications, I am trying to copy a large table of random numbers that lives on workbook B into a new sheet(tab) of workbook A.

    I have tried various methods (copy paste by text, DDE [don't ask], manual, programatic) and have even tried to break the task into smaller and smaller chunks in between which I clear the clipboard using user32 calls EmptyClipboard and CloseClipboard as per http://social.msdn.microsoft.com/For...b-276864d7c28d

    However the problem is bizarly always the same, at around the 62,000th row I get the "Excel cannot complete this task with available resources" error message.
    However I can happily continue to copy and paste data so long as it isn't south of row 62,000 or thereabouts, which points to the problem being something other than memory resource exhaustion (Additionally I have been running 350MB sheets on this machine for years without a problem so a simple out of memory diagnosis doesn't quite fit)

    Any ideas as to what this may be and how to resolve it?
    50GB of RAM?

  8. #8
    Registered User
    Join Date
    01-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Strange "Excel cannot complete this task with available resources" behaviour

    That's right, plenty ...

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Strange "Excel cannot complete this task with available resources" behaviour

    have you been able to copy just a few lines more past the 62000 mark?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  10. #10
    Registered User
    Join Date
    01-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Strange "Excel cannot complete this task with available resources" behaviour

    Yes, I think the actual line where it stops cooperating is 62,235 or something like that

  11. #11
    Registered User
    Join Date
    01-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Strange "Excel cannot complete this task with available resources" behaviour

    Nothing?

    Ok I bit the bullet and over the weekend rewrote all the precalculated table loading routines to read from csv files.
    I guess some Excel problems aren't meant to be solved...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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