The DocumentOpened event fires at the VERY end of a document being opened so the Document object is available to be used.
When a document is opened that references other documents, only the top-level document will cause the documentOpened event to be fired. You can access the referenced documents by using the documentReferences property of the Document object.
-------- Import ----------------- Global variables --------- |
-------- Global variables --------- |
--------- Required include files. --------- |