Closed Files Remaining in VBA Editor

DMumme

New Member
Joined
Jun 14, 2014
Messages
23
I have Office 365 on Windows 8.1. There are no Add-Ins. When I close a certain workbook it still appears in the VBA Editor. Reopening the workbook sometimes produces another instance of the workbook in the VBA editor which also continues to appear in the VBA Editor after closing the workbook ad infinitum. Other times, upon reopening the workbook there is but a single instance of the workbook in the VBA editor. When the workbook is closed I can still select most of the individual sheets and modules in the VBA Editor and see the code. Selecting some of the sheets produces an "out of memory" warning. I am nowhere near out of memory. It is interesting that the sheets associated with the warning are the two sheets without any VBA coding. When the workbook is open I can select any sheet in the VBA Editor without getting error messages. Restarting Excel does clear the phantom workbooks from the VBA Editor. Bottom line: 1) Can I keep these phantom files from appearing (remaining after closing) in the VBA Editor? 2) If not, is there some way (preferably VBA code) that will remove the phantom files once they do appear?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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