How do you reset a userform?

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

Guest

I have a userform that runs great, but when I go back to use again it still has the information in the form from the last time. How do I clear it I want the check boxes reset to the orginal status and othe command boxes reset to look like the userform that I created

TIA
 
Are you hiding it or unloading it when you close it?

-----Original Message-----
I have a userform that runs great, but when I go back to
use again it still has the information in the form from
the last time. How do I clear it I want the check boxes
reset to the orginal status and othe command boxes reset
to look like the userform that I created.
 
I am hiding it

----- Greg Wilson wrote: ----

Are you hiding it or unloading it when you close it

-----Original Message----
I have a userform that runs great, but when I go back to
use again it still has the information in the form from
the last time. How do I clear it I want the check boxes
reset to the orginal status and othe command boxes reset
to look like the userform that I created
 
There's your answer, then! :-)

--

Vasant

Lucky said:
I am hiding it.

----- Greg Wilson wrote: -----

Are you hiding it or unloading it when you close it?


use again it still has the information in the form from
the last time. How do I clear it I want the check boxes
reset to the orginal status and othe command boxes reset
to look like the userform that I created.
 
You need to unload it instead of hiding it:
"Unload Me" instead of "Me.Hide". If it's too slow
unloading you can hide it first and then unload it while
it's hidden.

Regards,
Greg
 
An alternative would be to store the default settings, either in VBA or
on a worksheet, and use a Sub to restore them.
 
The great thing about these borads is the fact that people answer you and let you know what to do.
Thanks everyone for your help.
 

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

Back
Top