What is a DOCM file?
DOCM is a Word document that can contain macros. Macros are small programs that run inside Word. Email filters and antivirus tools often block this type.
Drop your file here
or select file
Images, video, audio, documents, data, archives, fonts and more.
About DOCM file:
01DOCM at a glance
- Full name
- Office Open XML Word Document, macro-enabled
- Type
- ZIP package of XML files with a macro project
- Extension
- .docm
- MIME type
- application/vnd.ms-word.document.macroEnabled.12
- First bytes (hex)
- 50 4B 03 04 (the letters PK, a ZIP file)
- Standard
- Extension of ECMA-376. Word 2007 and later
02What is a DOCM file
DOCM is a DOCX that is allowed to contain macros. A macro is a small program written in VBA that runs inside Word. It can fill in forms, build tables or change the document. Word saves a document with macros as DOCM, because it refuses to store macros in a DOCX.
Inside, a DOCM is a ZIP archive like a DOCX. The macros live in one extra file, vbaProject.bin. A tool can see from this file whether a DOCM really has macros, and an empty DOCM without macros is possible.
Macros are also a common way to spread malware. Microsoft blocks macros in files that come from the internet by default in current versions of Office, and many mail systems reject DOCM attachments. If you send a DOCM, expect a security warning on the other side.
Use DOCM only when the macros are needed. For a finished document, send DOCX or PDF.
03Good and bad sides
Good
- Can run VBA macros for forms and automation
- Same editing features as DOCX
- Opens in Word and LibreOffice (macros need Word)
Bad
- Macros trigger security warnings and may be blocked
- Often rejected by mail systems
- Layout can change in another program
- Not meant for print
04Best for
Automation inside Word
This is the reason to use DOCM.
Use outside Word
Opens in LibreOffice, but the macros need Word.
05How to open it
- Windows
- Microsoft Word (runs macros), LibreOffice Writer (limited)
- macOS
- Microsoft Word, Pages (macros are not run)
- iPhone and Android
- Word app shows the text, but macros do not run
- Linux
- LibreOffice Writer (macros are not run)
- Online
- Word for the web shows the text, but macros do not run
06Convert and compare
Sources