What is a DOCM file?
Word Open XML Macro-Enabled Document
- Developed By
- Microsoft
- Initial Release
- 2006
- MIME Type
- application/vnd.ms-word.document.macroEnabled.12
A DOCM file is a macro-enabled document created by Microsoft Word (2007 and later), compliant with the Office Open XML (OOXML) standard (ECMA-376 and ISO/IEC 29500). Structurally, it is a zipped archive containing XML files for content and styles, identical to the DOCX format, but with the specific distinction that it is authorized to execute Visual Basic for Applications (VBA) macros stored within a vbaProject.bin part. This separation ensures security by preventing macro execution in standard DOCX files.
How to open a DOCM file
Opening DOCM files requires software capable of parsing OOXML and executing VBA scripts. Microsoft Word is the standard environment for full functionality. LibreOffice Writer and WPS Office can open DOCM files and display content, but support for executing the embedded proprietary VBA macros may be limited or require code refactoring. Security settings in most software will disable macros by default upon opening to prevent malicious code execution.