Initialize Event

Microsoft Visual Basic Constants

Initialize Event

           

Occurs after an object is loaded, but before it's shown.

Syntax

Private Sub object_Initialize()

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Remarks

The Initialize event is typically used to prepare an application or UserForm for use. Variables are assigned initial values, and controls may be moved or resized to accommodate initialization data.