R ranswrt Jul 25, 2008 #1 I have a textbox on a userform to input dates. How do I format the textbox to only accept dates in the form of mm/dd/yy? Thanks
I have a textbox on a userform to input dates. How do I format the textbox to only accept dates in the form of mm/dd/yy? Thanks
O Office_Novice Jul 25, 2008 #2 Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean) TextBox1.Value = Format(TextBox1.Value, "mm/dd/yy") End Sub
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean) TextBox1.Value = Format(TextBox1.Value, "mm/dd/yy") End Sub
R ranswrt Jul 25, 2008 #3 Works great Thanks Office_Novice said: Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean) TextBox1.Value = Format(TextBox1.Value, "mm/dd/yy") End Sub Click to expand...
Works great Thanks Office_Novice said: Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean) TextBox1.Value = Format(TextBox1.Value, "mm/dd/yy") End Sub Click to expand...