Hey guys I am trying to find the Max number from 3 given numbers in VBA, but it's not giving me what I won't. I know there are many function to get me there, like pre-built ones. But can u tell me exactly why this one won't function. It's for my school, no idea what to do. Doesn't seem to go past B parameter.
Function Max(A As Integer, B As Integer, C As Integer) As Integer
Max = A
If Max < B Or B > C Then
Max = B
ElseIf A < C Or B < C Then
Max = C
Else
Max = 0
End If
End Function