Integer only textbox?

  • Thread starter Thread starter Robert.Cordani
  • Start date Start date
R

Robert.Cordani

Can I set a textbox (on a form) to accept only integer values? If so
how?
TIA
 
Create an _AfterUpdate() routine for your text box and then check if
its an integer in your code.
 
Okay, I was afraid it wouldn't be as simple as a property value.

Thank you.
 
If the tool must use a userform then you are stuck with setting up
events for it, but if you had the input in a cell on a worksheet then
you could use simple Data Validation and set it to only whole
numbers.... just some thoughts
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top