Function NumSuffix(MyNum As Variant) As String
'*******************************************
'Name: NumSuffix (Function)
'Purpose: Add suffix to an number
'Inputs: ? NumSuffix(234)
'Output: 234th
'*******************************************
Dim n As Integer, x As Integer
Dim strSuf As String
n = Right(MyNum, 2)
x = n Mod 10
strSuf = Switch(n <> 11 And x = 1, "st", n <> 12 And x = 2, "nd", _
n <> 13 And x = 3, "rd", True, "th")
NumSuffix = LTrim(Str(MyNum)) & strSuf
End Function