Event fired before exiting the application.

Syntax:

BeforeExit( Cancel  As Boolean )
Parameters: Cancel False: No cancellation of the exit process. RC-WinTrans will quit. True: Exit process will be canceled. RC-WinTrams will not quit.


Example:
' in a class module "EventClass"

Dim WithEvents App As Application

Private Sub App_BeforeExit(Cancel As ReturnBoolean)
 
[...]

End Sub

' in a module

Public EventManager As New EventClass

Sub TestMacro()
	Set EventManager.App = Application
End Sub

See also:

Class Application

Last Updated: 04/26/05