Johnny C
Well-known Member
- Joined
- Nov 7, 2006
- Messages
- 1,069
- Office Version
- 365
- Platform
- Windows
I've got a workbook that's processing a lot of data, about 850K rows. It's using about half a Gb. The wbk itself loads a text file and splits it into sheets in a new workbook which is saved and closed, then all the data read in from the text file is deleted, cell A1 selected and the host workbook saved.
The problem is this has to run on a number of files. After a few, Excel crashes due to lack of memory. I don't want the user to have to shut Excel down every time. When I check the memory wit performance monitor, each time it's run and I close all the workbooks down, it's using an additional 130M memory which isn't being freed up even though there are no workbooks open.
The VBA is clearing the clipboard every time the code is run with application.cutcopymode=false
Is there any thing else I can do to force memory garbage collection?
(PS Can I turn ff this atomatic spellcheckr and utosave , it losing half the letters I typ?)
The problem is this has to run on a number of files. After a few, Excel crashes due to lack of memory. I don't want the user to have to shut Excel down every time. When I check the memory wit performance monitor, each time it's run and I close all the workbooks down, it's using an additional 130M memory which isn't being freed up even though there are no workbooks open.
The VBA is clearing the clipboard every time the code is run with application.cutcopymode=false
Is there any thing else I can do to force memory garbage collection?
(PS Can I turn ff this atomatic spellcheckr and utosave , it losing half the letters I typ?)