Terminate

Occurs when all references to an instance of a Form are removed from memory by setting all the variables that refer to the object to Nothing or when the last reference to the object falls out of scope.

Syntax

Private Sub object_Terminate( )

Remarks

For all objects, the Terminate event occurs after the Unload event.

The Terminate event is not triggered if the instances of the form were removed from memory because the application terminated abnormally.