Hi
I am trying to make a vb class library that will be used in Excel. I complied the DLL, added it as a reference (.tlb file) in the VBA but when I refer the dll function it says "ActiveX component cannot create object"
The function in the dll uses 4 inputs and returns 2 outputs as in:
Function Scaler(min1 As Single, max1 As Single, myStep As Integer, myNum As Integer, min2 As Single, max2 As Single)
min2 and max2 are the calculated values.
My main question is what am I missing? The other question is (I have searched the stuff available here and not found an answer): can I return computed values as part of the function? I would like to know how I could return values in arrays.
Any help is appreciated.