+ Reply to Thread
Results 1 to 3 of 3

Remove closed VBProjects

  1. #1
    Registered User
    Join Date
    04-01-2007
    Posts
    8

    Remove closed VBProjects

    Is there a way to banish VBA Projects from the VBA editor project explorer window?

    After the workbooks are closed the VBProject remain even if the VBA window is closed, it only refreshes if Excel is restarted.

    Thsi is really frustrating as due to dev work this is creasing a number of instances of ghost projects with the same name as the open file I am working on, is there a way to make the projects close when the workbook is closed?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello XLScottW,

    In my experience what you are is describing is not typical of the VBE. Once the Workbook is closed the Project Explorer window should reflect this by the VBProject's abscence and update accordingly. You may need to re-install Excel if VBA has become corrupted.

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    05-26-2012
    Location
    Moldova
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Remove closed VBProjects

    I had the same problem and I was able to fix it.
    My workbook was held in a public variable.
    Closing it was not enough - I had to set the variable to 'Nothing' so that Excel's garbage collector could get rid of it.
    Please Login or Register  to view this content.
    I've seen this question repeated many times - I might repeat this answer in a few other places. Apologies if it doesn't work for you.
    Last edited by Leith Ross; 05-26-2012 at 06:55 PM. Reason: Added Code Tags

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1