Terminate

This event occurs when you remove all references to an instance of a Form object from memory.

Syntax

Private Sub form_Terminate( )

Parameters

form
Object expression that evaluates to a Form object.

Remarks

The Terminate event occurs after the Unload event.

The Terminate event does not occur if the application terminates abnormally.

Because you cannot load and unload forms dynamically, the Terminate event occurs only when an application closes, after all forms are unloaded.