+ Reply to Thread
Results 1 to 2 of 2

How do I access a DLL in Excel VBA?

Hybrid View

Ryu Soma How do I access a DLL in... 07-08-2008, 05:36 AM
Ryu Soma My bad, the error wasn't file... 07-08-2008, 08:01 AM
  1. #1
    Registered User
    Join Date
    07-07-2008
    Location
    Berlin
    Posts
    4

    How do I access a DLL in Excel VBA?

    I'm trying to access the functions/Methods of a dll in VBA.
    The dll was created as COM Add-In with C#.NET and is registered in the Excel Application (I can't register it in the VBA Add-In Manager).

    When I try to access the dll in VBA with
    Public Declare Sub Test2 Lib...
    I only get an error telling me the file wasn't found, even though I used the full path of the dll.

    What did I do wrong?
    And what is the correct way of using a function or method from a dll?

    Thanks.

  2. #2
    Registered User
    Join Date
    07-07-2008
    Location
    Berlin
    Posts
    4
    My bad, the error wasn't file not found but entry point not found.
    I used the exact same names as the methods I created in the dll, though.

+ 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