R
rmcompute
I am trying to test a variable to determine if it is numeric
I typed the following in the immediate window:
mvar = 4 ?
isnumber(mvar)
Result: Sub or Function not defined.
In the program, I typed:
Dim mvar as String
mvar = "5"
Application.WorksheetFunction.IsNumber(mvar)
Result: False
mvar = "A"
Application.WorksheetFunction.IsNumber(mvar)
Result: False
Shouldn' t the test return true for 5. How can I test to determine if the
value is a number without checking if it is 0,1,2,3 etc. ?
I typed the following in the immediate window:
mvar = 4 ?
isnumber(mvar)
Result: Sub or Function not defined.
In the program, I typed:
Dim mvar as String
mvar = "5"
Application.WorksheetFunction.IsNumber(mvar)
Result: False
mvar = "A"
Application.WorksheetFunction.IsNumber(mvar)
Result: False
Shouldn' t the test return true for 5. How can I test to determine if the
value is a number without checking if it is 0,1,2,3 etc. ?