Event fired before a project document is closed.

Syntax:

BeforeCloseProjectDocument(Project As TranslationProject, Cancel As ReturnBoolean)
Parameters: Project Project of the project document that will be closed.
Cancel False: No cancellation of the close process. The project will be closed. True: Close process will be canceled. The project will not be closed.

Example:
' in a class module "EventClass"

Dim WithEvents App As Application

Private Sub App_BeforeCloseProjectDocument(ByVal Project As TranslationProject, _
	ByVal 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: 08/08/05