Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
userinput is wrong (check in vba)
Hi,
I have a number of txt_boxes in a userform where the user has to put in a number like 2,5 (two and a half) or 25,7 for example. If the user puts in 2.5 the application wille generate an error message. I have two questions: 1. How can i make sure that the numer is always put in, using a "," instead of a "." ? if the user puts in eg 2.5 i need it to correct to 2,5 or set the focus back to the field with an error message. 2. How can i make sure all the 10 fields are filled and if one is not filled, to generate an error message and go to the first field that is not filled? Thanks, Pierre -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200509/1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Insert Calculated Field (wrong Qty*Price = wrong Amount) | Excel Discussion (Misc queries) | |||
Increase size of a Forms Check Box (click on to enter check mark) | Excel Discussion (Misc queries) | |||
Check if Conditional Format is True or False / Check cell Color | Excel Worksheet Functions | |||
Spell check: advise and advice are used in the wrong context. | Excel Discussion (Misc queries) | |||
Check or a file exist give wrong result | Excel Programming |