Initialize Event

Applies To

Module object.

Description

The Initialize event for a class module occurs when you create an instance of that class module.

Note To run code when the Initialize event occurs, you must place that code within the Initialize event procedure in a class module.

Remarks

The Initialize event occurs when you:

  • Create a new instance of a class directly by using the New keyword.
  • Create an instance of a class indirectly by setting or returning a property or applying a method defined in the class module.
See Also

Event properties, Terminate event.