Results 1 to 48 of 48

Big List Sort. Not Enough Memory. Help Run my Code. Or help fix or change code Please :)

Threaded View

Doc.AElstein Big List Sort. Not Enough... 09-15-2016, 01:18 PM
Winon Re: Big List Sort. Not Enough... 09-15-2016, 01:39 PM
Doc.AElstein Re: Big List Sort. Not Enough... 09-15-2016, 02:26 PM
Winon Re: Big List Sort. Not Enough... 09-15-2016, 02:51 PM
Doc.AElstein Re: Big List Sort. Not Enough... 09-15-2016, 03:02 PM
Winon Re: Big List Sort. Not Enough... 09-15-2016, 03:33 PM
Doc.AElstein Re: Big List Sort. Not Enough... 09-15-2016, 03:52 PM
Winon Re: Big List Sort. Not Enough... 09-15-2016, 04:27 PM
Doc.AElstein Re: Big List Sort. Not Enough... 09-15-2016, 07:05 PM
NoSparks Re: Big List Sort. Not Enough... 09-15-2016, 09:12 PM
Doc.AElstein Re: Big List Sort. Not Enough... 09-16-2016, 04:32 AM
humdingaling Re: Big List Sort. Not Enough... 09-15-2016, 10:34 PM
humdingaling Re: Big List Sort. Not Enough... 09-15-2016, 10:47 PM
xlnitwit Re: Big List Sort. Not Enough... 09-16-2016, 04:01 AM
humdingaling Re: Big List Sort. Not Enough... 09-16-2016, 07:54 AM
Winon Re: Big List Sort. Not Enough... 09-16-2016, 07:25 AM
Doc.AElstein Memories... of Runing out of... 09-16-2016, 08:05 PM
Doc.AElstein Day 2: Waiting for my last... 09-19-2016, 07:57 PM
Doc.AElstein I would toggle your code, if... 09-20-2016, 02:29 PM
Doc.AElstein Thrashing VBA Memory Leaks.... 10-05-2016, 08:59 AM
Doc.AElstein Thrashing VBA Memory Leaks.... 10-05-2016, 09:00 AM
xlnitwit Re: Big List Sort. Not Enough... 09-16-2016, 08:03 AM
Doc.AElstein Cache Browser Data ... 09-16-2016, 10:18 AM
humdingaling Re: Big List Sort. Not Enough... 09-16-2016, 11:04 AM
Doc.AElstein Looks like Excel is the... 09-16-2016, 11:33 AM
xlnitwit Re: Big List Sort. Not Enough... 09-16-2016, 11:56 AM
Doc.AElstein Got Big list from xlNitWit... 09-16-2016, 12:14 PM
xlnitwit Re: Big List Sort. Not Enough... 09-16-2016, 12:49 PM
Doc.AElstein Re: Big List Sort. Not Enough... 09-16-2016, 01:11 PM
Winon Re: Big List Sort. Not Enough... 09-16-2016, 08:53 PM
Doc.AElstein Delete, Close Doesn't "Clear"... 09-17-2016, 05:48 AM
Winon Re: Big List Sort. Not Enough... 09-17-2016, 11:04 AM
Doc.AElstein Re: Big List Sort. Not Enough... 09-17-2016, 11:36 AM
Doc.AElstein Re: Check Difference between... 09-18-2016, 08:26 AM
Doc.AElstein So two closed workbook code... 09-18-2016, 08:42 AM
xlnitwit Re: Big List Sort. Not Enough... 09-19-2016, 08:52 AM
Doc.AElstein Re: Big List Sort. Not Enough... 09-19-2016, 09:22 AM
xlnitwit Re: Big List Sort. Not Enough... 09-20-2016, 01:49 AM
Doc.AElstein Re: Big List Sort. Not Enough... 09-20-2016, 04:58 AM
xlnitwit Re: Big List Sort. Not Enough... 09-20-2016, 06:32 AM
Doc.AElstein Bugger... Another Theory of... 09-20-2016, 07:36 PM
Doc.AElstein Getting there :) ..... slowly... 09-22-2016, 09:53 AM
xlnitwit Re: Getting there :) ........ 09-22-2016, 11:28 AM
Doc.AElstein Re: Getting there :) -- Next... 09-23-2016, 05:00 PM
Doc.AElstein Re: Big List Sort. Not Enough... 06-08-2017, 06:56 AM
  1. #1
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Big List Sort. Not Enough Memory. Help Run my Code. Or help fix or change code Please :)

    Big List Sort. Not Enough Memory. Help Run my Code. ( Or fix it Please ! )

    VBA has a Memory of the Memory it used. And I cannot clear it

    Hi
    I have been on this a few days now, and am going really mad!!
    I am working privately on home on my old computers ( PC Vista, XL2007 ). I am trying to make a large reference list of Foods and their Nutrients to help in organising Diets.
    I am hitting a Brick wall.
    I do not get far before Excel “bombs out” with error “Not enough Memory

    I am keen to get to the bottom of this before I reluctantly may have to invest in a new computer, especially as I do not want to do that only to find a small improvement.


    So I am asking for help here as follows.
    _1) Could someone if they have access to a fairly “state of the current art” computer have a go at running a code for me and tell me how far you get. ( An Error handler section will chuck out a message as well as you will see how many rows get filled in ) . If you can give me some details of the computer you are using that will help me.

    _2 ) Anyone have any other ideas how I can change the code to get over this problem. Have I missed something?
    . ( In parallel I will now rewrite the program without Arrays to see if that gets me anywhere.. )

    So, in order for you to help me, .....
    I upload two Files_....
    _ “BDSept2016.xlsx” ( A couple of links to different share filing sites )
    box https://app.box.com/s/1vjlvdm1n4bmlcu61f2dyxrzx9lh92oh
    German Telekom: https://www.magentacloud.de/share/jqlc8w278a#$/
    _... This is the File to be filled in. This is at the outset just a File with Headers ( There are 20 Rows for each Header (Nutrition Type Name ) to allow different spellings of the Nutritions and other information about the Nutritions ). So Data rows will be filled in from Row 21.
    _....

    _.....and data File with code ( Sub USDAToDB()
    )_.......
    _ “NutritionalValues2016.xlsm” ( A couple of links to different share filing sites )
    box https://app.box.com/s/o77euubc1kaz11kb0ajg5o4ux8s3wi5a
    German Telekom https://www.magentacloud.de/share/6t-0t1ao1v#$/
    _ This has a large amount of data. Only the following Columns are of interest:
    _ J Names of Food Products. ( Like Butter, Hamburger .. etc.. etc.. )
    _ K Nutrition Names ( Like Fat , Protein etc.. etc... )
    _ N Values of the Nutritions in standardised Units

    So here the first Part of the only used Worksheet ( “NutritionalValues” ) in data File _ “NutritionalValues2016.xlsm
    Using Excel 2007 32 bit
    Row\Col
    J
    K
    L
    M
    N
    1
    Food Product
    Nutrion Name
    Nutrition Value
    2
    Butter, salted
    |Protein
    g
    0.85
    0.85
    3
    Butter, salted
    |Total lipid (fat)
    g
    81.11
    81.11
    4
    Butter, salted
    |Carbohydrate, by difference
    g
    0.06
    0.06
    NutritionalValues

    On average the Food Products have a bit under 80 Nutrition Values. There are 8790 Food products. There are approximately then 680000 Rows in this data File !!

    So in this file the code I would like you to run for me when both Workbooks are open is.
    Sub USDAToDB()
    Code is also Posted here:
    http://www.excelforum.com/showthread...29#post4481078
    and in the following post
    http://www.excelforum.com/showthread...36#post4481236
    is also the same File as .xlsx, (“NutritionalValues2016.xlsx” ) should you prefer not to download a .xlsm File )
    When I run this code, I, get to between 340-347 rows filled in worksheet “Tabelle1” in File “DBSept2016.xlsx” before the code errors. ( I need finally nearly 9000 !!!, so I am not getting very far.. Lol... ) ( Edit: I just managed to borrow a WINDOWS 7 XL2010 .. and only got a few more rows ?? )

    Thanks,

    Alan

    _.....................................................
    _...............................

    Some further points:
    _(i) Often , once the code “Bombs out” , the next run does not get past the first row!! So I have to close Excel and start again ??
    _(ii) I added a code line to erase three large Arrays after the code no longer needed them. That had no noticeable effect.

    _(iii ) My Files are very large. But I thought I had an efficient code. (_... I have gone to great lengths in Threads to optimise an efficient combination of Worksheet Functions and use of Arrays.
    http://www.excelforum.com/showthread...45#post4326245
    http://www.eileenslounge.com/viewtop...176056#p175302
    http://www.excelforum.com/tips-and-t...ml#post4380613
    I use extensively 1 Dimensional Arrays which I have found is very efficient ( at least from the Speed point of view ).
    _... )


    _(iv) The following Info is not necessary to know to help me, but may be of interest for anyone interested the code I have posted.
    Code Notes ( and Files ) to the code given Here:
    http://www.excelforum.com/showthread...36#post4481236

    (_... Code in this post
    http://www.excelforum.com/showthread...36#post4481078
    _.....)
    Last edited by Doc.AElstein; 09-17-2016 at 02:20 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Code For A Custom Sort Using A List On Another Sheet
    By rockyw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-06-2016, 08:51 PM
  2. [SOLVED] VB Code to sort the list
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2016, 08:34 PM
  3. Help rewriting code to use less memory
    By Karl Gustaf Karsten in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2016, 12:56 PM
  4. just a smidgeon of correction to VBA sort list code please
    By yogup in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-05-2016, 01:48 PM
  5. VB Code to sort the list in ascending order
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-22-2015, 12:08 PM
  6. Add Custom Sort List to VBA code
    By Zyphon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2009, 09:44 AM
  7. How much memory does VBA code occupy?
    By Ozgur Pars in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2006, 02:09 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