Sep 14, 2011 #1 gustaf111 Programmer Jan 16, 2011 87 SE Hello, I can not get the Exit event on a textbox working on Excel 2007. Private Sub TextBox1_Exit() MsgBox ("Test") End Sub I would like to validate that the input in the textbox is a valid date, are there any system functions ? Thanks Gustaf
Hello, I can not get the Exit event on a textbox working on Excel 2007. Private Sub TextBox1_Exit() MsgBox ("Test") End Sub I would like to validate that the input in the textbox is a valid date, are there any system functions ? Thanks Gustaf
Sep 14, 2011 #2 S SkipVought Programmer Dec 4, 2001 47,489 US hi, WHERE is your text box? Skip, Just traded in my old subtlety... for a NUANCE! Upvote 0 Downvote
Sep 14, 2011 Thread starter #3 gustaf111 Programmer Jan 16, 2011 87 SE Hello Skip, It is on a a excel sheet Thanks Gustaf Upvote 0 Downvote
Sep 14, 2011 #4 S SkipVought Programmer Dec 4, 2001 47,489 US Where do you see the Exit Event? Do you see the LostFocus event? Skip, Just traded in my old subtlety... for a NUANCE! Upvote 0 Downvote
Where do you see the Exit Event? Do you see the LostFocus event? Skip, Just traded in my old subtlety... for a NUANCE!
Sep 14, 2011 Thread starter #5 gustaf111 Programmer Jan 16, 2011 87 SE I just changed to new excel sheet! And there the LostFocus evnt works! Thanks Skip! Do you now how to valide the string to a valid date ? Upvote 0 Downvote
I just changed to new excel sheet! And there the LostFocus evnt works! Thanks Skip! Do you now how to valide the string to a valid date ?
Sep 14, 2011 #6 S SkipVought Programmer Dec 4, 2001 47,489 US I do not recommend alloing users to enter dates in a text box. Why not a Date Picker or separate dependent fields for year, month & day? Skip, Just traded in my old subtlety... for a NUANCE! Upvote 0 Downvote
I do not recommend alloing users to enter dates in a text box. Why not a Date Picker or separate dependent fields for year, month & day? Skip, Just traded in my old subtlety... for a NUANCE!
Sep 14, 2011 Thread starter #7 gustaf111 Programmer Jan 16, 2011 87 SE ohh! Okay. What is the reason ? I will think aboyt it, but I would prefer to input date like: 2011-09-14 ..... Upvote 0 Downvote
ohh! Okay. What is the reason ? I will think aboyt it, but I would prefer to input date like: 2011-09-14 .....
Sep 14, 2011 #8 S SkipVought Programmer Dec 4, 2001 47,489 US Can you be assured, with certainty that your user(s) will always enter dates that are unambiguous or can be interpreted for validation? for instance, date string entered in dd-mm-yyyy structure WILL be converted in a manner not expected and dates can also be entered using alpha months. When have you ever entered a date into a professionally managed system that accepted free form strings? I have not! I'd use a DatePicker control. SIMPLE!!! Skip, Just traded in my old subtlety... for a NUANCE! Upvote 0 Downvote
Can you be assured, with certainty that your user(s) will always enter dates that are unambiguous or can be interpreted for validation? for instance, date string entered in dd-mm-yyyy structure WILL be converted in a manner not expected and dates can also be entered using alpha months. When have you ever entered a date into a professionally managed system that accepted free form strings? I have not! I'd use a DatePicker control. SIMPLE!!! Skip, Just traded in my old subtlety... for a NUANCE!