thank you Bob.Working fine !
one more question.
how to validate date entries in TextBoxes (on Userform),user wants to enter
date values in dd/mm/yy form,after entry and exiting from textbox the textbox
entry be displayed in dd-mmm-yy format.
Bob Phillips wrote:
With Me.TextBox2
If .Text < "" And _
(Not IsNumeric(.Text) Or _
Val(.Text) Me.TextBox1.Text) Then
MsgBox "Invalid value"
.SelStart = 0
.SelLength = Len(.Text)
.SetFocus
Exit Sub
End If
'OTHER CODE
End With
Mr.Rick Rothstein gave me correct vb code for testing two textbox for
(equal)values.
[quoted text clipped - 15 lines]
or
corrects the entry by putting exact values as in TextBox1.
--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200806/1