+ Reply to Thread
Results 1 to 4 of 4

excel memory overload after multiple iterations

  1. #1
    Registered User
    Join Date
    01-01-2013
    Location
    melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    55

    excel memory overload after multiple iterations

    Hello,

    i have a macro which opens a template and a source file, copies the information out of the source file into the template in a formatted way then closes the source file and uses the "saveas" command on the template to save and rename the file.

    this then loops, after about 200 iterations it crashes. i have noticed by having the task manager open that the memory creeps up with ever iteration (maybe by about the same amout as the template size (8mb)).

    does the saveas command then application.close clear the file from memory? or would it be more likely i have memory leakage within my code?

    thanks

  2. #2
    Registered User
    Join Date
    04-29-2013
    Location
    Ontario, Canada
    MS-Off Ver
    MS Office 2010
    Posts
    80

    Re: excel memory overload after multiple iterations

    Does your macro have any large values assigned to a variable through SET, you have to make sure that they equal NOTHING at the end of your script to release memory.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-01-2013
    Location
    melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    55

    Re: excel memory overload after multiple iterations

    here is where i think needs improvement.

    does excel hold a file in memory if i use
    Please Login or Register  to view this content.
    then
    Please Login or Register  to view this content.
    ???


    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-29-2013
    Location
    Ontario, Canada
    MS-Off Ver
    MS Office 2010
    Posts
    80

    Re: excel memory overload after multiple iterations

    Here is what i found through other posts in Excel Forum.
    HTML Code: 
    Hope it leads you in the right direction.

    Draconi

+ 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. Multiple categories, Looping iterations and deleting rows
    By Glenn Kennedy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-04-2012, 06:46 AM
  2. Replies: 1
    Last Post: 12-08-2011, 08:52 AM
  3. Calculation Overload
    By Sedapsofeca in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2009, 02:35 PM
  4. Formula Overload?
    By BCB in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-17-2008, 07:03 PM
  5. help please : counting iterations based on multiple criterias
    By ccoindy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2007, 11:40 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