The DocumentOpening event fires at the VERY start of a document being opened. There is no promise that the document will be opened, hence a documentOpened event may not follow.
When a document is being opened that references other documents, only the top-level document will cause a documentOpening event to be fired.
-------- Import ----------------- Global variables --------- |
-------- Global variables --------- |
--------- Required include files. --------- |