Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
7 Digits Only
I want to have a message box come up when there are less than seven digits
on a UserForm TextBox . How would the code go? Greg |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
7 Digits Only
Hi
in the Exit event of this textbox you could check for the length of the textbox value. e.g. '.... if len(textbox1.value)<7 then msgbox "entry too short" cancel=true end if '... -- Regards Frank Kabel Frankfurt, Germany gregork wrote: I want to have a message box come up when there are less than seven digits on a UserForm TextBox . How would the code go? Greg |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
7 Digits Only
Could there be 7digits and an alpha?
-- HTH RP (remove nothere from the email address if mailing direct) "Frank Kabel" wrote in message ... Hi in the Exit event of this textbox you could check for the length of the textbox value. e.g. '.... if len(textbox1.value)<7 then msgbox "entry too short" cancel=true end if '... -- Regards Frank Kabel Frankfurt, Germany gregork wrote: I want to have a message box come up when there are less than seven digits on a UserForm TextBox . How would the code go? Greg |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do you change single digits to recognized double digits? | Excel Worksheet Functions | |||
VBA write macro change column with 3 number digits to 4 digits the | Excel Discussion (Misc queries) | |||
number 12 digits to 15 digits | Excel Discussion (Misc queries) | |||
How to customize number to 10 digits including 2 digits after deci | Excel Worksheet Functions | |||
last 2 digits | Excel Discussion (Misc queries) |