Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reset a VBA form in Excel

Status
Not open for further replies.

irbk

MIS
Oct 20, 2004
578
US
I have a VBA program writen in Excel. This program contains many userforms. I am wondering if there exists some kind of simple command to reset all the controls (check boxes, text boxes, radio buttions, etc) on the form. Any one know of a command to do that?

Thanks in Advance!
 
Unload UserFormName

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks for the try. That just seems to unload the userform (not what I want to do). While it does accomplish clearing the form from the screen, that's more then what I'm trying to do. I basically just want to reset the form to the status it was when you first opened the form.
 
Sorry, I wanted to post this:
Unload UserFormName
UserFormName.Show

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Actually.... since I'm only running this while I'm closing one form and opening another.. the unload may just work afterall!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top