Trouble with Unload statement in VBA
190 pts.
0
Q:
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: Sep 17 2009  7:47 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
190 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Last Answered: Sep 17 2009  7:47 PM GMT by McNitro   190 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0