clearing data from a user form

T

thomas donino

I am relatively green at this so pardon my ignorance. I have created a user
form, it works fine. I want to add a button to the form, that clears the data
in the user form.
It has three fields, email address, subject and message.

Thank you
 
J

Jacob Skaria

Private Sub CommandButton1_Click()
Me.TextBox1.Text = ""
Me.TextBox2.Text = ""
Me.TextBox3.Text = ""
End Sub

If this post helps click Yes
 
T

thomas donino

ty

Jacob Skaria said:
Private Sub CommandButton1_Click()
Me.TextBox1.Text = ""
Me.TextBox2.Text = ""
Me.TextBox3.Text = ""
End Sub

If this post helps click Yes
 

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