Search notes:
VBA statements: Load und Unload
load obj
loads a an object into memory.
unload obj
removes an object from memory
Typically, such objects are
UserForm
objects.
Loaded
UserForm
objects are listed in the
UserForms
collection.
After loading a UserForm, it is not visible and needs to be made visible explicitly by calling the UserForm's .show()
method.
A typical scenario to use load
on a UserForm is to set (global) member-variables of the form before showing the form:
load frmXYZ
frmXYZ.val_1 = "foo"
frmXYZ.val_2 = "bar"
frmXYZ.val_3 = "baz"
frmxYZ.show()
See also
Error 361: Can't load or unload this object.