My excel spreadsheet works fine when the dll has an absolute path, but when it is in the same directory and I don’t specify a path, just put the name of the dll, it can’t find it.
When I try
Debug.Print CurDir
C:\TEMP\TestAPSOutput\Simple2Room
But that’s not right. How can I reset this to point at the directory of the actual spreadsheet, and therefore hopefully load the dll?
Thanks,
James
Try:
I use this all the time to find files I have placed in the same folder as the workbook.