LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 152
Default What is proper way to Open Close Release xls files in VBA?

Hi,
I have a VBA project that opens many files, extracts info, then closes them
(between 10 & 500 files sequentially).

I open the data file, get what I need, close it, then open the next data file.

The files themselves are all pretty small - each under 60k.

However, as the application cycles through all the files, the memory usage
in Task Manager keeps growing and the app slows down.

I've checked in VBA Editor after it's done and it shows all the files that I
opened and closed.

Can someone show me an example of the proper way to handle files so that the
memory is actually released back to the system?

Thanks!
MikeZz
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
open and close files Chi Excel Worksheet Functions 2 May 28th 09 09:46 PM
Close other open excel files anon Excel Programming 2 November 11th 07 02:31 PM
fix for open/close files problem Patricia Shannon Excel Discussion (Misc queries) 0 April 25th 06 04:21 PM
Open Save & Close All Files in Dir Diane Alsing Excel Programming 5 January 31st 05 07:47 PM
Open/Close files from Hyperlinks Revolvr[_2_] Excel Programming 1 May 7th 04 10:58 PM


All times are GMT +1. The time now is 08:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"