Consulting

Results 1 to 13 of 13

Thread: Strange VBE - problem

  1. #1
    VBAX Regular
    Joined
    Jun 2004
    Location
    Denmark
    Posts
    58
    Location

    Strange VBE - problem

    Hi

    Running danish winXP/excelXP
    I have a strange "problem" in my VBE-edtor.
    Looking in project-explorer I can see VBA-projects belonging to files that has been closed.
    I can even edit the code.
    If I open a file , close it and open it again, the VBA-project is twice in the project-explorer.
    This also happens on my labtop (english winXP/excelXP)
    When I used win98 and win2000 this was not a problem.
    Anyone seen this before ? (and can anything be done ?)

    TIA
    Tommy Bak

  2. #2
    VBAX Mentor CBrine's Avatar
    Joined
    Jun 2004
    Location
    Toronto, Canada
    Posts
    387
    Location
    Tommy,

    I noticed the exact same thing back about 2 weeks ago, and posted to MrExcel. I can't find the post for some reason, but the responses I recieved we basically saying "Yeah, the same thing happens to me". I haven't checked the msdn site, but it's a pretty minor annoyance. Although the day I noticed it I had opened about 50 workbooks with macro's and they were all still there after I closed them, including being able to view the code???



    PS: Running Win2000, Office 2003
    The most difficult errors to resolve are the one's you know you didn't make.


  3. #3
    VBAX Regular
    Joined
    Jun 2004
    Location
    Denmark
    Posts
    58
    Location
    Thanks CBrine, allway nice to know that I'm not the only one with this problem.

    I'm a little surpriced that you expirienced the problem with win2000, as it first started here when I moved to winXP, but maybe I didn't notice it before.

    Br
    Tommy Bak

  4. #4
    VBAX Mentor CBrine's Avatar
    Joined
    Jun 2004
    Location
    Toronto, Canada
    Posts
    387
    Location
    I don't think it was happen to me with Win98 and Office 97. I upgraded to Win 2000 and Office 2003 at the same time, so didn't do the transition you did. Of course it took me about 4 months to notices it as well.
    Personal macro workbook, addins for html, for BBcode, personal addins, etc... tend to make my project explorer a pretty messy place anyway.
    The most difficult errors to resolve are the one's you know you didn't make.


  5. #5
    VBAX Regular
    Joined
    Jun 2004
    Location
    Denmark
    Posts
    58
    Location
    Well, right now I've been testing and the problem also seems to appear in my xl2000 but not in my xl97.
    Maybe it's just a setting somewhere in windows or in the registry...

  6. #6
    VBAX Regular
    Joined
    Jun 2004
    Location
    Denmark
    Posts
    58
    Location
    Just tried to run excel.exe /unregserver and excel.exe /regserver .

    That didn't help :-)

  7. #7
    VBAX Contributor Richie(UK)'s Avatar
    Joined
    May 2004
    Location
    UK
    Posts
    188
    Location
    Hi Tommy,

    I haven't experienced this particular 'feature' but I have read posts from others with the same problem.

    Two suggestions:

    1. To clear the ghost projects have you tried using the Reset option (In the VBE Run menu)?

    2. Do the workbooks concerned contain references to other workbooks? It seems to help if we follow 'best practice' and set our workbook variables equal to nothing at the end of our routines.

    Apart from that I don't really know what else to suggest. Can you create the situation deliberately? For example, is it always particular workbooks that cause the problem? Is there anything special about these workbooks?

  8. #8
    VBAX Mentor CBrine's Avatar
    Joined
    Jun 2004
    Location
    Toronto, Canada
    Posts
    387
    Location
    Here's another strange thing. The sheets I was pulling up a few weeks ago, when I noticed this problem. I tried pulling a few up just now to see if it was a reference problem like Richie suggested. It doesn't seem to be doing it now???

    Cal
    The most difficult errors to resolve are the one's you know you didn't make.


  9. #9
    VBAX Regular
    Joined
    Jun 2004
    Location
    Denmark
    Posts
    58
    Location
    Hi Richie

    I have now tried both your solutions. Reset gives no difference and my project don't have any references. Some don't even have code.
    No, I can't create the situation deliberately, but it's there all the time.
    I don't think there is anything special about the workbooks.
    The only add-inn used is Analysis Toolpak and Person.xls
    I'll try to eliminate these
    Tommy Bak

  10. #10
    VBAX Regular
    Joined
    Jun 2004
    Location
    Denmark
    Posts
    58
    Location
    No, not even running in safe mode helps.
    Depressing
    Have to go to bed now....nearly midnight here in Denmark...

    br
    Tommy Bak

  11. #11
    Knowledge Base Approver
    The King of Overkill!
    VBAX Master
    Joined
    Jul 2004
    Location
    Rochester, NY
    Posts
    1,727
    Location
    Hi Everyone,

    Not sure if this would apply to your case, but I read about a bug involving the VBE and Google Desktop Search. Apparently if you have this program installed on your computer, the VBE keeps projects that have already been closed, and prompts for the VBAproject password upon closing of those files. Not sure if this is the case for any of you, but figured it couldn't hurt to share.

    http://www.dicks-blog.com/archives/2...oogle-desktop/

    Matt

  12. #12
    VBAX Regular
    Joined
    Jun 2004
    Location
    Denmark
    Posts
    58
    Location
    YES, mvidas, I think you have hit the solution. I will try this and return...

    and correct, I have Google Desktop Search installed on both computers.

    regards
    Tommy Bak

  13. #13
    VBAX Regular
    Joined
    Jun 2004
    Location
    Denmark
    Posts
    58
    Location
    Thanks mvidas .
    The problem was solved after uninstalling Google desktop.

    best regard and a happy x-mas

    Tommy Bak

Posting Permissions

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