View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Jim Thomlinson[_3_] Jim Thomlinson[_3_] is offline
external usenet poster
 
Posts: 983
Default TextBox that only accepts integers?

You can validate the contents of the textbox using the isnumeric function.
You will also have to look for "-" and "." using the instr function.


"Claud Balls" wrote:

What would be the best way to check that text is a positive whole
number? I'm thinking about putting it in the textbox_exit event.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!