Hitch hiking VBA Projects not wanted

teachman

Active Member
Joined
Aug 31, 2011
Messages
321
Hello,

I've been doing a lot of very simple VBA error checking macros in a number of different workbooks. I will sometimes borrow/copy some code from another workbook to my current project. Of course, to copy code from another workbook I have to open it so it shows up in the VBA Editor TOC pane.

The problem is when I no longer need to have the other workbook open I close it but the project remains. Since a lot of my projects have similar long names I can't readily tell which of the projects is my current one at times. So, I not only want to close the 'old' workbook but I want to remove the associated project from the VBA Editor TOC pane.

The only way I found to do that is to exit Excel and re-open it and then open my current workbook. This gets old after a short while.

How can I remove a project from the VBA Editor TOC? Not the personal workbook, other workbooks.

Thanks,

George Teachman
 

Some videos you may like

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
36,133
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS
That behaviour is normally caused by a faulty COM add-in in my experience (it is not the way Excel usually works).
 

Watch MrExcel Video

Forum statistics

Threads
1,123,057
Messages
5,599,545
Members
414,316
Latest member
ExcelLee

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
Top