I am writting some function in Excel using VBA. Here is my code :
Function PresentValue2()
Dim i As Double
i = 1
Dim coll As Collection
coll.add i
PresentValue2 = coll.Item(1)
End Function
I made a break point and the intepreter just stops at the instruction coll.add i and the function return the value "#VALUE!"
Why is that?
I add the same problem with a Dynamic array