VBA Project of closed files still in VB Editor window?

EdNerd

Active Member
Joined
May 19, 2011
Messages
456
In my code, I'm opening a workbook, saving it with a new name, creating a new workbook from a template, and moving data between the files. When all is said and done, I only have two files open on the desktop: the original "master" file containing the code, and the new file I created from the template. But in the VBA Project window in the VB Editor, I still see the VBA Projects for the file I opened and for the file I created with SaveAs. Does this indicate there's a clean-up method I need to use? Or is it okay to ignore this? Additional info: the only reason I'm seeing this is because I'm in the VB Editor tweaking the code. No one else using this macro is going to see this.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
VB Editor will show any open Workbooks. If Workbooks are Not Visible instead of Closed, they will show in VB Editor but you won't be able to see them on the Desktop. Once Workbooks are Closed, they will no longer show in VB.
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,963
Members
449,094
Latest member
Anshu121

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