Strange "Out of Memory Error" on Close

DaVinci

Board Regular
Joined
Feb 18, 2004
Messages
57
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!!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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?
 
Upvote 0

Forum statistics

Threads
1,225,626
Messages
6,186,090
Members
453,337
Latest member
fiaz ahmad

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top