Event fired if a project file has been opened.

Syntax:

OnOpenDocument( ProjectFileName As String )
Parameters: ProjectFileName Name of the project file that has been opened.

Example:
' in a class module "EventClass"

Dim WithEvents App As Application

Private Sub App_OnOpenDocument(ByVal ProjectFileName As String)
 
[...]

End Sub

' in a module

Public EventManager As New EventClass

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

See also:

Class Application

Last Updated: 03/17/21