Table of contents
Collapse the table of content
Expand the table of content

Document.Open Event (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Occurs when a publication is opening.


expression. Open

_expression_A variable that represents a Document object.


To access the Document object events, declare a Document object variable in the General Declarations section of a class module, then set the variable equal to the Document object for which you want to access events.

For more information about using events with the Document object, see Using Events with the Document Object.


This example displays a message when a publication is opened. (The procedure can be stored in the ThisDocument module of a publication.)

Private Sub Document_Open() 
 MsgBox "This publication is copyrighted." 
End Sub
© 2018 Microsoft