Strange "Out of Memory Error" on Close

DaVinci

Board Regular
Joined
Feb 18, 2004
Messages
55
I have two files open. Both are pretty complicated with lot's of graphs, Shapes, pictures and formulas.

File2 is the Active Workbook.
When I simply Save File 2 from the "File" tab - No problem

Then, I have a "Button" on File2, that calls a macro in File1, simply:

Sub CloseFile2()
ActiveWindow.Close (True)
End Sub

Another weird symptom, relates to the Forms. There are several Forms. As I work in the s'sheet, the Form opens, I execute some action, then Close Form. BUT! If I roll-over the file icons in the Task Bar, and the File I'm on appears on screen, it STILL SHOWS the Form!

What's going on? Any troubleshooting tips? Thanks!!
 

DaVinci

Board Regular
Joined
Feb 18, 2004
Messages
55
A very odd fix... After doing some looking around, someone had suggested just closing the VBA Window prior to executing the code. It WORKED! What? Can someone explain? Was that VBA Developer window actually occupying a ton of memory?
 

Forum statistics

Threads
1,077,686
Messages
5,335,656
Members
399,032
Latest member
thefinu

Some videos you may like

This Week's Hot Topics

Top