.XLSM file extension
To open .XLSM files on Windows, double-click the .xlsm file to open it in Microsoft Excel, or open Excel and use File > Open.
To open an .xlsm file, use Microsoft Excel on Windows or macOS. Because .xlsm files can contain macros, Excel may open the file with macros disabled until you explicitly enable them.
Last updated: June 12, 2026
Open on your device
Choose your operating system for a dedicated step-by-step opening guide.
How to open .XLSM files
Use these platform-specific instructions to open .XLSM files safely.
Windows
- Double-click the .xlsm file to open it in Microsoft Excel, or open Excel and use File > Open.
- If you trust the file source and need the automation, follow Excel’s prompt to enable macros; otherwise keep macros disabled and review the contents first.
Mac
- Open the .xlsm file with Microsoft Excel for macOS (File > Open from within Excel if needed).
- If Excel shows a security warning about macros, only enable them if you trust the workbook and understand what the macro does.
Linux
- If you need the macros to run, open the file on a Windows or macOS machine with Microsoft Excel.
- If you only need to view the spreadsheet data, try opening it in a compatible spreadsheet application; be aware that macro behavior may not be supported.
iOS
- If you need macro functionality, open the file in Microsoft Excel on Windows or macOS; mobile viewing may not support running macros.
Android
- If you need macro functionality, open the file in Microsoft Excel on Windows or macOS; mobile viewing may not support running macros.
Security notes
- .xlsm files can contain macros; the “m” extension indicates macro-capable content, so treat files from unknown sources as potentially unsafe.
- If a workbook asks you to enable macros, only do so when you trust the sender and you understand why the macro is needed.
- If you only need the data, open the workbook with macros disabled to reduce risk from unwanted macro execution.
Macros, scripts, and embedded content
PDF, Office, and some rich e-book containers may include macros, JavaScript actions, or external links. Phishing campaigns abuse that. Keep your viewer suite patched, avoid enabling macros on unexpected documents, and treat “urgent” invoices or parcel notices as untrusted until verified.
Avast offers free and premium antivirus software that protects against viruses, malware, ransomware, and phishing. Scan files before opening them to ensure safety.
NortonNorton 360 delivers comprehensive antivirus protection, VPN, and identity theft monitoring. Scan files for threats before opening to keep your device secure.
We may earn a commission when you use affiliate links. This supports our free file extension guides.
Can't open this file?
These are the most common causes and fixes when .XLSM files fail to open.
Common reasons
- Macros are blocked or won’t run
- Saving removes macros when using the wrong format
- Features don’t transfer when exporting to other formats
Fix steps
- Confirm you trust the file’s source and that you actually need the macro to run.
- In Excel, use the security prompt/notification to enable macros for the workbook if appropriate.
- If you don’t need automation, keep macros disabled and use the workbook as a regular spreadsheet.
OS-specific troubleshooting
What is a .XLSM file?
.xlsm is an Excel macro-enabled workbook in the Office Open XML family (the “m” indicates the file can contain macros). It is an Open XML Spreadsheet (SpreadsheetML) package variant designed to preserve macro content alongside normal workbook data. The registered media type is application/vnd.ms-excel.sheet.macroEnabled.12.
Background
.xlsm is the macro-enabled workbook format used by modern versions of Excel that support the Office Open XML file formats. Microsoft’s “m” extensions indicate that the document can contain macros, and Excel requires this format when saving workbooks that contain macros.
In practice, .xlsm is used for spreadsheets that automate tasks with macros (for example, workflow buttons, data cleanup routines, or reporting automation) while still using typical Excel features like worksheets and formulas. Microsoft notes that the Macro-Enabled Workbook format preserves macros and macro sheets in addition to standard workbook features.
At a standards level, .xlsm builds on the Office Open XML standard (ECMA-376) for spreadsheet documents, with additional conventions for macro-enabled files described in Microsoft’s Office macro-enabled format specifications.
Common MIME types: application/vnd.ms-excel.sheet.macroEnabled.12
Further reading
Authoritative resources for more details on the .XLSM format.
- IANA Media Types: application/vnd.ms-excel.sheet.macroEnabled.12
- Microsoft Support: Open XML formats and file name extensions
- Microsoft Support: Save a macro
- Microsoft Support: Excel formatting and features that are not transferred to other file formats
- Microsoft Learn: [MS-OFFMACRO] Office Macro-Enabled File Formats
- Ecma International: ECMA-376 Office Open XML
Common .XLSM issues
Macros are blocked or won’t run
Because .xlsm files can contain macros, Excel may open the workbook with macros disabled and require user action before any macro code can run.
- Confirm you trust the file’s source and that you actually need the macro to run.
- In Excel, use the security prompt/notification to enable macros for the workbook if appropriate.
- If you don’t need automation, keep macros disabled and use the workbook as a regular spreadsheet.
Saving removes macros when using the wrong format
If you save a macro-containing workbook to a non-macro-enabled format (such as a standard Office Open XML workbook), the macros may be lost or not preserved.
- In Excel, use Save As and choose the macro-enabled workbook format (*.xlsm).
- Reopen the saved file to confirm the macros are still present and functioning.
- If you must share a macro-free copy, save a separate non-macro version and keep the original .xlsm as the source.
Features don’t transfer when exporting to other formats
Some Excel features, including macros and macro sheets, are preserved in .xlsm but may not transfer to other file formats.
- Keep the master copy as .xlsm when you need macros preserved.
- When exporting or converting, verify that the destination format supports what you need (especially macros).
- Test the exported file in the target application before distributing it.
FAQ
What does the “m” in .xlsm mean?
Microsoft uses “m” extensions in the Office Open XML family to indicate the file can contain macros; .xlsm is the Excel macro-enabled workbook format.
Can I save a workbook with macros as .xlsx?
If the workbook contains macros, Microsoft advises saving it as a macro-enabled workbook (*.xlsm); saving to a non-macro-enabled format can remove or not preserve the macros.
What is the MIME type for .xlsm?
application/vnd.ms-excel.sheet.macroEnabled.12 (as registered with IANA).
Similar file extensions
Compare related formats in the same category to find the right tool faster.
- .pdf - Portable Document Format
- .docx - Microsoft Word Open XML Document
- .xlsx - Microsoft Excel Open XML Spreadsheet
- .log - Plain-text Log File
- .pptx - Microsoft PowerPoint Open XML Presentation
- .txt - Plain Text File
- .ppsx - PowerPoint Show (Office Open XML Slideshow)
- .pptm - PowerPoint Macro-Enabled Presentation (Open XML)