docx
    Preparing search index...

    Type Alias DocumentMacroEvent

    DocumentMacroEvent:
        | "new"
        | "open"
        | "close"
        | "sync"
        | "xmlAfterInsert"
        | "xmlBeforeDelete"
        | "contentControlAfterAdd"
        | "contentControlBeforeDelete"
        | "contentControlOnExit"
        | "contentControlOnEnter"
        | "contentControlBeforeStoreUpdate"
        | "contentControlBeforeContentUpdate"
        | "buildingBlockInsert"

    An event of a document that its macros can handle, in the document's own module, ThisDocument. Each is the event's name in VBA, after "Document_", such as "open" for Document_Open.