What code can I use whereby if the user times in anything other than a number an error message will prompt them.
[U]If NOT val(Textbox1.value) then[/U] Msgbox("Sorry you must only put numbers") else end if
The line underlined, does not work. Please can someone tell me what the right code is? Thank you very much for your help.