This is somewhat related to my other question .
I am using dll to work with Excel spreadsheet. Everything currently works with dll, and excel uses it just fine. But is it possible to indicate that the dll is in the same directory as the excel file when declaring functions?
Declare Sub FortranCall Lib "Fcall.dll" (r1 As Long, ByVal num As String)
Unfortunately this will not work, I have to use something like:
Declare Sub FortranCall Lib "C:\temp\Fcall.dll" (r1 As Long, ByVal num As String)
It works, but it will cause headaches when distributing my office assistants. Placing dll in c: \ windows \ system32 etc. Also not an option.
windows dll excel
Roook
source share