G
George
Please help. I have a #error problem and can't tell
what's wrong with this call. Can you help?
-----------------------------------------------------------
Option Explicit
Public Function ConvertTime(TimeInput As Text) As String
Dim calTime As Integer
If TimeInput <> " " Then
calTime = Val(TimeInput)
ConvertTime = Format(calTime, "hh:mm:ss AMPM")
'Should return "05:04:23 PM"
Else
Exit Function
End If
End Function
what's wrong with this call. Can you help?
-----------------------------------------------------------
Option Explicit
Public Function ConvertTime(TimeInput As Text) As String
Dim calTime As Integer
If TimeInput <> " " Then
calTime = Val(TimeInput)
ConvertTime = Format(calTime, "hh:mm:ss AMPM")
'Should return "05:04:23 PM"
Else
Exit Function
End If
End Function