Why is this a number?
Because Excel knows how to convert it to a number
? clng("45-")
-45
which is the defninition of isNumeric.
Many accounting applications indicate negatives by using the notation you
show.
--
Regards,
Tom Ogilvy
"Dave F." wrote in message
...
Hi
I'm using VBA 6.3
If I pass 45- to this:
If IsNumeric(OffsetNo) = False Then
...
it returns True.
1) Why?
2) How do I prevent this happening?
Thanks in Advance.
|