Public Function getMyC(tmpA As Long, tmpB As Long) As String
[COLOR=Green]'********************
'Code Courtesy of
' Paul Eugin
'********************[/COLOR]
If tmpA = 10 Then
If tmpB < 5 Then
getMyC = "b"
Else
getMyC = "a"
End If
Else
If tmpB < 3 And tmpB > 5 Then
getMyC = "b"
Else
getMyC = "a"
End If
End If
End Function