Public Function Code in Excel VB Programming
Hi,
I am learning Excel VB programming. It is quite easy. But I don't get how to use custom function in here?
Public Function gradeCal(gpa As Double)
If (gpa >= 5) Then
Return "A+"
ElseIf (gpa >= 4) Then
Return "A"
……
End Function
But its not working. What is the proper syntax of returning some value from a Excel function?








