Application.DocumentOpen Event (Publisher)

Occurs when opening a document.


expression. DocumentOpen(Doc)

expression A variable that represents an Application object.


Name Required/Optional Data Type Description
Doc Required Document The document that's being opened.


This example displays a message with the document's name when opening a document.

Private Sub appPub_DocumentOpen(ByVal Doc As Document) 
 MsgBox "Please wait. " &; Doc.Name &; " is opening." 
End Sub

See also

Application Object