Word document can't be closed because it is referenced by a VBA project that is open

Hello, I've sent a client a Word doc converted from a target file in Trados Studio 21. She gets a message telling her 'Word document can't be closed because it is referenced by a VBA project that is open' (I've translated the error message she received from French). Has anyone come across this? Is there anything I can do to fix this from my end? Message she receives:

Error message in French stating 'This document cannot be closed because it is referenced by an open VBA project. Close the project to be able to close this document.' with an OK button.



Generated Image Alt-Text
[edited by: RWS Community AI at 12:05 PM (GMT 0) on 18 Dec 2024]
emoji
  •  

    This is a known Microsoft Word issue, not specific to Trados Studio, and it typically occurs when:

    • The Word document contains macros or VBA code.
    • A global or document-level VBA project is still loaded in memory.
    • The document was created from a template with macros, or edited in a way that introduced a macro module.

    Given you sent the file to your customer after translating it with the VBA your client might be able to resolve it like this:

    • Close the VBA editor if open (Alt+F11), and then try closing the document again.

    • Check for other open documents that may be referencing the same VBA project.

    • Disable any macros:

      • File > Options > Trust Center > Trust Center Settings > Macro Settings > Disable all macros (with or without notification).

    • Try saving the file under a new name as this might break the reference.

    • Inspect the file properties:

      • File > Info > Check for Issues > Inspect Document.

      • Use the "Document Inspector" to remove hidden macros or references.

    Maybe something there will help?

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji