DLL is registered on the machine but into the code

Posted on 2006-03-22
Last Modified: 2010-04-07
Is it possible to register a DLL created before in VB into the code¿?, or I must register it into the menu of VB in references¿?
Question by:1469
    LVL 29

    Assisted Solution

    How To Register Your Custom ActiveX DLL from a Client

    Author Comment

    It´s good, but my problem it´s the follow,

    I have created a dll in vb that I´m gonna use in excel.

    I declare at the top
    private declare function xxxxx

    but it said me that it couldn´t find that dll.
    LVL 13

    Assisted Solution


    make sure to register the dll by typing this in the command prompt:

    regsvr32 "path/to/your/dll"
    LVL 8

    Accepted Solution

    Check your registry for the names of the components that you registered.

    (this is assuming you registered your dll using regsvr32.exe)

    Go to your registry (Start->Run. Type in regedit) and navigate to this location


    If you registered your DLL corectly it will be in this list.  If you locate it then make sure the name specified here is the name you are using in your app.

    LVL 8

    Expert Comment

    by:Leo Eikelman
    Cheers :)

    Happy programming


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Title # Comments Views Activity
    macro for email automation 16 101
    Problem to refer to cell 8 67
    VBA to create a graph with dynamic data in a table 8 51 2008 2 39
    Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
    Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now