UserForm Question

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
 
M

Mark Lincoln

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
 
G

Guest

Barb,
This will clear previous entries

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top