Consulting

Results 1 to 15 of 15

Thread: Library References

  1. #1
    VBAX Expert Imdabaum's Avatar
    Joined
    Jun 2006
    Posts
    652
    Location

    Library References

    Is there a way to clear the References of items you have removed from your computer? I wrote a dll locally for testing and when it worked I placed it in a folder on the network so other applications could reference it. Now that I deleted the local copy of the dll I can't get it to stop showing up in the references. This isn't damaging or affecting anything... I'm just anal.
    Someday I'll understand everything...
    Even then...I'll still pretend I'm a beginner.

  2. #2
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Hey, can you give some exampes? Not sure I'm following you wholly here..

  3. #3
    VBAX Expert Imdabaum's Avatar
    Joined
    Jun 2006
    Posts
    652
    Location

    Reference Tools Option

    Sure I created a dll called Mousewheel. It allows me to disable the scroll button from advancing the records. I tested it on my local machine so that I could be sure it would work and not bug up the entire system. It worked, so I copied up to the network so it could be used by everyone in the office. I deleted the Mousewheel.dll on my local machine, but when you are in VBA--Tools--Reference, Two dlls now appear. One from my local machine, and the second one on the network folder that I stored it in. I'm not sure what kind of example you want... I'll upload a screen shot though.
    Someday I'll understand everything...
    Even then...I'll still pretend I'm a beginner.

  4. #4
    Moderator VBAX Master Tommy's Avatar
    Joined
    May 2004
    Location
    Houston, TX
    Posts
    1,184
    Location
    Hi Imdabaum,

    Have you tried to unregester it using regsvr32 /u D:\users......MouseWheel.dll ?

  5. #5
    VBAX Expert Imdabaum's Avatar
    Joined
    Jun 2006
    Posts
    652
    Location
    I haven't. Do I run that from the command line? Or is it something I can do from Start--> RUN, or is it simply a folder/ file that I need to open in the regedit screen?
    Someday I'll understand everything...
    Even then...I'll still pretend I'm a beginner.

  6. #6
    VBAX Mentor ALe's Avatar
    Joined
    Aug 2005
    Location
    Milan
    Posts
    383
    Location
    use start->Run
    ALe
    Help indigent families: www.bancomadreteresa.org

  7. #7
    VBAX Expert Imdabaum's Avatar
    Joined
    Jun 2006
    Posts
    652
    Location
    Either I didn't do it right or it didn't work.
    Someday I'll understand everything...
    Even then...I'll still pretend I'm a beginner.

  8. #8
    VBAX Mentor ALe's Avatar
    Joined
    Aug 2005
    Location
    Milan
    Posts
    383
    Location
    Do you get any error message?
    ALe
    Help indigent families: www.bancomadreteresa.org

  9. #9
    VBAX Expert Imdabaum's Avatar
    Joined
    Jun 2006
    Posts
    652
    Location
    Nope, no Error message just a hum of the CPU.
    Someday I'll understand everything...
    Even then...I'll still pretend I'm a beginner.

  10. #10
    Moderator VBAX Master Tommy's Avatar
    Joined
    May 2004
    Location
    Houston, TX
    Posts
    1,184
    Location
    if
    regsvr32 /u "D:\Users\BAUMBP\My Documents\Work Databases\SampleAcc\MouseWheel.dll"
    didn't give a message box then something was entered wrong (that is of course if I have my entry right ) regsvr32 will complain if something is wrong. See posted picture.

    Otherwise you will need to open the registry up and search for the MouseWheel.dll and delete all occurences that are not wanted. Do this only if you are comfortable doing this.

  11. #11
    VBAX Expert Imdabaum's Avatar
    Joined
    Jun 2006
    Posts
    652
    Location
    Okay now I got a MsgBox LoadLibrary("D:\Users\BaumBP\MyDocuments.....MouseWheel.dll" failed- The specified module could not be found.

    But the dll is still listed in the reference tool box.
    Someday I'll understand everything...
    Even then...I'll still pretend I'm a beginner.

  12. #12
    Moderator VBAX Master Tommy's Avatar
    Joined
    May 2004
    Location
    Houston, TX
    Posts
    1,184
    Location
    Copy the dll back to your machine and rerun regsvr32 then delete the dll. This should fix it. Otherwise it regestry time.

  13. #13
    VBAX Expert Imdabaum's Avatar
    Joined
    Jun 2006
    Posts
    652
    Location
    regsvr32 /u D:\Users\BAUMBP\My Documents\Work Databases\NorthWind\DllReference\MouseWheel.dll

    I typed that in the start menu and I know the dll is in that location. I was looking at it right before I ran the proceedure. It gave me the same error.

    Any ideas about how to do it somewhat simplified from the Registry?
    Someday I'll understand everything...
    Even then...I'll still pretend I'm a beginner.

  14. #14
    Administrator
    Chat VP
    VBAX Guru johnske's Avatar
    Joined
    Jul 2004
    Location
    Townsville, Australia
    Posts
    2,872
    Location
    Download this and try again - there's a deregister function in there, you just need to type in the name of the file and click 'Deregister the file above'.
    You know you're really in trouble when the light at the end of the tunnel turns out to be the headlight of a train hurtling towards you

    The major part of getting the right answer lies in asking the right question...


    Made your code more readable, use VBA tags (this automatically inserts [vba] at the start of your code, and [/vba ] at the end of your code) | Help those helping you by marking your thread solved when it is.

  15. #15
    VBAX Expert Imdabaum's Avatar
    Joined
    Jun 2006
    Posts
    652
    Location
    I got the message that the .dll was deregistered... but it still shows up in my references. Is that what it is suppose to do?
    Someday I'll understand everything...
    Even then...I'll still pretend I'm a beginner.

Posting Permissions

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