+ Reply to Thread
Results 1 to 4 of 4

Error 400 Out of memory

  1. #1
    Registered User
    Join Date
    04-15-2024
    Location
    sweden
    MS-Off Ver
    365
    Posts
    2

    Question Error 400 Out of memory

    Hey!

    I've got an Excel workbook running on an office screen that shows numbers from different departments.
    The macro part is simply "auto updating" the numbers so the screen can run without any human interaction.

    A problem with this is that after running for a few weeks it "runs out of memory"?
    I've tried having the temporary Excel files deleted once in a while, but it does not appear to affect this memory it is running out of.
    The only solution I've found is to close the entire Excel application and restart the workbook.

    Does anyone here have any idea of solution to how I could "empty" the Excel memory so the workbook macro can keep running ~forever?

    Thank you in advance!

  2. #2
    Forum Contributor
    Join Date
    09-18-2023
    Location
    Geogia, USA
    MS-Off Ver
    365
    Posts
    100

    Re: Error 400 Out of memory

    How are you releasing objects in your code? Can you post it here?
    A few other things to look at https://www.automateexcel.com/vba/out-of-memory-error/

  3. #3
    Registered User
    Join Date
    04-15-2024
    Location
    sweden
    MS-Off Ver
    365
    Posts
    2

    Re: Error 400 Out of memory

    I'm not sure if I use any objects. This is the "timer" code I use to refresh the data:

    Please Login or Register  to view this content.
    This is the refresh code that runs when the timer reaches 300:

    Please Login or Register  to view this content.
    To not keep referenses I use this to translate the referenses to text:

    Please Login or Register  to view this content.
    This is one of my attempts to lessen the memory usage by closing open workbooks, but it does not seem to have made any difference.

    Please Login or Register  to view this content.
    I do not know if any of these counts as objects. I do not use any graphical objects. Only text.

  4. #4
    Forum Contributor
    Join Date
    09-18-2023
    Location
    Geogia, USA
    MS-Off Ver
    365
    Posts
    100

    Re: Error 400 Out of memory

    Anything you use Set with is an object. How is rng, Workbooks given a values? The timer stuff can be rough too. Also, the size of the Excel file and the calculations it has to carry out will impact this.

+ 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] Run time error 7. Out of memory error to correct
    By RAJESH SHAH in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-18-2023, 09:34 AM
  2. [SOLVED] Thrashing VBA Memory Leaks. Memory Loop Problems. Uncleared Memory in .Match Range Object
    By Doc.AElstein in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-10-2017, 05:17 PM
  3. [SOLVED] Out of Memory Error
    By chaddug in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-09-2015, 03:47 PM
  4. Replies: 1
    Last Post: 12-08-2011, 08:52 AM
  5. Error: Out of memory
    By Mangesh Yadav in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-05-2005, 07:05 AM
  6. How to handle error 8007000e Memory Error
    By L. A. M. in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-27-2005, 11:05 PM
  7. Out of Memory Error 7
    By Paul Black in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-24-2005, 09:05 AM

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