I have a userform that is opened when a user clicks a button in a worksheet. After clicking the button, if the user inputs some data, then decides to close the form, the previously entered data remains in the form. How can (in code) I get rid of that data so it opens with the default every time the button is clicked?
Currently I just use
form.Show
when the button is clicked and
form.Hide
when the user hits the cancel button within the form.
Thanks!
Change
form.HidetoUnload Me