On Excel File Closing - Receive Out of Memory Warning and Closing of Application

DMumme

New Member
Joined
Jun 14, 2014
Messages
23
I have a reasonably large file with VBA code and Userforms. Frequently, upon closing this file I receive the error "Microsoft Visual Basic for Applications - Out of memory". Once I have closed the error message the entire Excel application and all open workbooks are shutdown and Excel restarts. The problem seems to occur most often when I have been in the VB editor but I cannot say that it only happens then. This issue happens even after I have cleared the clipboard (which I have never had to do before for any other file). I have rebuilt the file., I changed Excel to have Admin rights but that screwed up other things and had to have MS fix that. Help!
 

Some videos you may like

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

James006

Well-known Member
Joined
Apr 4, 2009
Messages
3,680
Hello,

Have you tried to Set your variables to Nothing ...?
 

Watch MrExcel Video

Forum statistics

Threads
1,109,009
Messages
5,526,258
Members
409,689
Latest member
martin_br

This Week's Hot Topics

Top