Hello MikeGonza,
Welcome ot the Forum!
The answer depends on what type of "form" you are referring to. Is this a worksheet or a VBA UserForm?
Hello MikeGonza,
Welcome ot the Forum!
The answer depends on what type of "form" you are referring to. Is this a worksheet or a VBA UserForm?
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
You can use data validation for this possibly.
Go to Data|Validation
Select Decimal from the Allow menu
Select Between from the Data menu
Enter a Min and Max value
You can then click the Input and Error tabs to customize the input prompt and Error alert.
This will force the user to use a "real number" between your Min and Max and can include whole numbers or decimals, but not commas...
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Hello Mike,
In the hours TextBox Exit event you can set Cancel = True to force the user back to the TextBox. You can first display a message using the MsgBox to alert the user the entry is not valid.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks