255 pts.
 Trouble with Unload statement in VBA
What am I missing?

I have written code with an Unload Userform statement that doesn't seem to wipe out the Userform from memory.

For Ex: (Default: CheckBox1.Value = False)

MyForm.Show


CheckBox1.Value = True


Unload MyForm


MyForm.Show


So, the form is shown to the user, and they mark CheckBox1 so the value now equals True. The form is then unloaded, but when it is shown to the user again CheckBox1 is still marked.  If I write the Unload statement into the code, shouldn't the form be shown the next time with all default values in place (i.e. CheckBox1 = False)?

Resetting the value of a CheckBox is a simple task, but when the forms incorporate ComboBox(es), TextBoxe(es), ListBox(es)...and on, and on, how can the form be reset to all default values the next time it is shown if the Unload statement doesn't work?  I've tried repaint as well.

Hope this makes sense!

Thanks



Software/Hardware used:
Excel 2003
ASKED: September 17, 2009  7:47 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _