UserForm Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a userform with a text box in it. I want the user to enter the month
and date in the format mm/yyyy. In the text box, I want to display mm/yyyy,
but when the user selects the TextBox1, I want it to clear out. What do I
need to do to accomplish this?

Thanks,
Barb Reinhardt
 
I haven't tested this, but it should work. I'm sure someone will tell
me if I'm wrong. :-)

Private Sub TextBox1_Enter()
TextBox1 = ""
End Sub
 
Barb,
This will clear previous entries

Private Sub TextBox1_Enter()
TextBox1.Value = ""
End Sub
 
Back
Top