I am using Excel version 16.9 for Mac.
Evaluate works if the returning value is an integer but not if it is text. The following code returns `Error 2029` when evaluating the RetText function.
Is this a known bug or is there a way around the problem?
Evaluate works if the returning value is an integer but not if it is text. The following code returns `Error 2029` when evaluating the RetText function.
Code:
temp = Evaluate(RetText())
temp1 = Evaluate(RetNo())
Public Function RetText() As String
RetText = "Te"
End Function
Public Function RetNo()
RetNo = 5
End Function
Is this a known bug or is there a way around the problem?