Hello All,
How to pop up message "Please enter number only" when user enters any text in TextBox. Should be enter by number only.
Regards,
tt3
Hello All,
How to pop up message "Please enter number only" when user enters any text in TextBox. Should be enter by number only.
Regards,
tt3
Last edited by tuongtu3; 02-21-2013 at 02:28 AM. Reason: Solved
Hi tuongtu3,
here's an example procedure that only accepts numbers:And a link with some explanation and more examples:![]()
Please Login or Register to view this content.
http://www.ozgrid.com/VBA/inputbox.htm
I will look into it and thank you for your info but I need number only in TextBox.
Regards,
tt3
Hi tt3
Perhaps this![]()
Please Login or Register to view this content.
John
If you have issues with Code I've provided, I appreciate your feedback.
In the event Code provided resolves your issue, please mark your Thread as SOLVED.
If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.
Do you want a msgbox or just ignore the keystoke other than numbers etc?
![]()
Please Login or Register to view this content.
Hi all,
Please look at the sample in attached and help me.
Regards,
tt3
Just add to a userform module.
So that the user can not enter anything other than Numbers, Enter, Tab, BackSpace, Left/Right Arrow.![]()
Please Login or Register to view this content.
Hi tuongtu3,
You can try this one too.... works fine. You need to modify a bit for your textbox requirements.
![]()
Please Login or Register to view this content.
Excelforum is Completely Awesome! True learning with Live Examples & Best Techniques!!
@Jindon: The Code work perfect with the userform sample.
@SunOffice; RHCPgergo; jaslake: I will use be using these codes for something else.
Thank you very much for your time and help.
Regards,
tt3
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks