Oliver Dewar
Board Regular
- Joined
- Apr 17, 2011
- Messages
- 201
Hi Guys.
I've got a workbook with a complex macro which uses multiple sheets to compile a final results sheet with tens of thousands of rows of data.
My issue is that, while the macro is running, the memory (Private Working Set) for EXCEL.EXE as seen in Task Manager increases until eventually it gets way over a gb and the workbook can no longer be saved and eventually crashes.
I have another script which runs for a similarly long period of time but causes no increase in memory load - I can't see the difference.
My question is if anyone is aware of specific pieces of code or errors that are known to cause this behaviour?
I have Windows 7 and have tested in both excel 2007 and excel 2013 with similar results.
At the moment I'm working around it by setting certain limits so the macro stops and the workbook can be saved... before closing and reopening excel then starting from where I left off.
Cheers all!
Oliver
I've got a workbook with a complex macro which uses multiple sheets to compile a final results sheet with tens of thousands of rows of data.
My issue is that, while the macro is running, the memory (Private Working Set) for EXCEL.EXE as seen in Task Manager increases until eventually it gets way over a gb and the workbook can no longer be saved and eventually crashes.
I have another script which runs for a similarly long period of time but causes no increase in memory load - I can't see the difference.
My question is if anyone is aware of specific pieces of code or errors that are known to cause this behaviour?
I have Windows 7 and have tested in both excel 2007 and excel 2013 with similar results.
At the moment I'm working around it by setting certain limits so the macro stops and the workbook can be saved... before closing and reopening excel then starting from where I left off.
Cheers all!
Oliver