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)
CheckBox1.Value = True
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.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!