Dear Experts

There are two textboxes in userform.

I want textbox1 to accept only Date value in format "dd-mm-yy"
Textbox2 should accept only logical vaue "Y" or "N"

Please help