I am using Visio 2016 pro for Office 365.
My stencil is saved in "My stencil" folder.
It has VBA macro only for Document_DocumentOpened event in ThisDocumemt module.
Option Explicit
Private Sub Document_DocumentOpened(ByVal doc As IVDocument)
MsgBox doc.Name & " opened!"
End Sub
When I start Visio application, create a blank new drawing, open this stencl by clicking a menu "Other Shapes"/ "My Shapes! in shapes window, then the Document_DocumentOpened event triggers normally.
But when I close this stencil and open again in the same manner, the event never triggers.
I don't remember this is the same as in previous versions of Visio.
Am I missing something important?