Is this possible? I've been messing around with this for a bit, but haven't been able to successfully do this.

I have an Active-X DLL called "Rodac.dll". with a class called clsDateEntry, containing a function called UserSelectedDate (with several string variables).

I've successfully gotten it working by referencing the DLL, but I would prefer to remove this necessity.

The following is the code I've tried:

Declare Function UserSelectedDate Lib "C:\Rodac.dll" (ByVal strIncuType As String, ByVal strDate As String, ByVal strIncuNumber As String) As Integer

To call the function:

DateReturn = UserSelectedDate(strIncuType, strDate, strIncuNumber)



Any options? I would also eventually like to move the Declare outside the general statements area, as the actual path to the dll will change.