jmongan
Mechanical
- Oct 7, 2004
- 39
I am writing a bit of code to run with a macro in SW. I have the following:
If txtNumber.Text <> IsNumeric Then
MsgBox ("Use only numbers.")
GoTo waithere
End If
The IsNumeric give an error "The argument is not optional" I have a test box being populated with 5 characters I want to ensure that only numbers are uses else give the error "use only numbers"
Any thoughts on making this work.
Thanks,
Josh
If txtNumber.Text <> IsNumeric Then
MsgBox ("Use only numbers.")
GoTo waithere
End If
The IsNumeric give an error "The argument is not optional" I have a test box being populated with 5 characters I want to ensure that only numbers are uses else give the error "use only numbers"
Any thoughts on making this work.
Thanks,
Josh