I have the following code in a module in my excel macro enable excel file:
When I call the first function from excel =Test1(10) I get 10 in the cell
When I call the second function from excel =Test2(10,5) I get "there's is a problem with this formula"
I have been trying to figure out what the problem is for hours now.
Code:
Public Function Test1(x)
Test1 = x
End Function
Public Function Test2(x, y)
Test2 = x - y
End Function
When I call the first function from excel =Test1(10) I get 10 in the cell
When I call the second function from excel =Test2(10,5) I get "there's is a problem with this formula"
I have been trying to figure out what the problem is for hours now.
Last edited by a moderator: