6.1.3.3.1.1 Load

Subroutine Declaration

 Sub Load(Object As Object) 

Runtime Semantics.

§ Loads a form or control into memory.

§ Using the Load statement with forms is unnecessary unless you want to load a form without displaying it. Any reference to a form (except in a Set or If...TypeOf statement) automatically loads it if it's not already loaded. For example, the Show method loads a form before displaying it. Once the form is loaded, its properties and controls can be altered by the application, whether or not the form is actually visible.

§ When VBA loads a Form object, it sets form properties to their initial values and then performs the Load event procedure. When an application starts, VBA automatically loads and displays the application's startup form.

§ When loading a Form whose MDIChild property is set to True (in other words, the child form) before loading an MDIForm, the MDIForm is automatically loaded before the child form. MDI child forms cannot be hidden, and thus are immediately visible after the Form_Load event procedure ends.