To call a function in a third-party DLL, you need to use a statement Declare. For instance:
Private Declare Function GetTempPath Lib "kernel32" _
Alias "GetTempPathA" (ByVal nBufferLength As Long, _
ByVal lpBuffer As String) As Long
See How to access a DLL in Excel on MSDN for more information.
To list the available functions, check out the Dependency Walker tool , which will list the exported functions from the DLL (and lots of other information).
source
share