ZybHN‖

77Kcm‖IsNumeric Function

CXQ5r‖Tests if an expression is a number. If the expression is a number, the function returns True, otherwise the function returns False.

6vASf‖Syntax:


CVUxC‖IsNumeric (Var)

ms95u‖Return value:

Boolean

doi6A‖Parameters:

VQgbA‖ Var: Any expression that you want to test.

SEjHR‖Error codes:

5 Invalid procedure call

z5QdA‖Example:


Sub ExampleIsNumeric
Dim vVar As Variant
    vVar = "ABC"
    Print IsNumeric(vVar) ' False
    vVar = "123"
    Print IsNumeric(vVar) ' True
End Sub