docx
    Preparing search index...

    Type Alias DocumentMacros

    A document's VBA macros, for the document's macros.

    type DocumentMacros = {
        events?: readonly DocumentMacroEvent[];
        project: Uint8Array | ArrayBuffer;
    }
    Index
    events?: readonly DocumentMacroEvent[]

    The events of the document that the project handles in ThisDocument, such as "open" for Document_Open. Word only runs the handlers of the events listed. createMacros lists them from the code. For a project from a .docm, they are the wne:docEvents in its word/vbaData.xml

    project: Uint8Array | ArrayBuffer

    The VBA project, the file Word keeps a document's macros in. createMacros from docx/macros writes it from VBA code. Or it is the word/vbaProject.bin of a .docm Word saved