XLD,
Thanks for your input, huge help.
All,
I am attaching my version of a TextBox that will capture a date that a user inputs.
ANY suggestions by anyone would greatly be appreciated.
Oh ya, here is the code incase you dont want to download the file...
Option Explicit
Private Sub CommandButton1_Click()
If IsDate(TextBox1.Value) = False Or Left(TextBox1.Value, 2) > 12 Or _
Mid(TextBox1.Value, 4, 2) > 31 Then MsgBox ("This is not a date, Please try again") _
Else MsgBox ("This is a date, Good for you")
End Sub
Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
Dim Temp As String
Select Case KeyAscii
Case Asc("0") To Asc("9")
Case Else: KeyAscii = 0
End Select
If Len(TextBox1) = 2 Or Len(TextBox1) = 5 Then _
TextBox1.Value = TextBox1.Value & "/"
End if
End Sub
Private Sub UserForm_Initialize()
TextBox1.Value = Format(Date, "MM/DD/YY")
CommandButton1.SetFocus
End Sub