.xlsm files
.xlsm file
Excel Macro-Enabled Workbook
An Excel workbook that contains VBA macros — and therefore executable code.
What opens a .xlsm file
- Windows
- Microsoft Excel, LibreOffice Calc (macros may not run), WPS Office
- macOS
- Microsoft Excel, LibreOffice Calc (macros may not run)
- Linux
- LibreOffice Calc (macros may not run), OnlyOffice
What a .xlsm file is
XLSM is XLSX with a macro project inside. Excel opens it with macros disabled and a yellow "Enable Content" bar, and that bar is the whole point: enabling macros in a file from an unknown sender runs their code on your machine. Legitimate uses are everywhere in finance and reporting; LibreOffice Calc opens the sheets fine but will not run VBA reliably.
Converting it
A .xlsm file is commonly converted to .xlsx, .csv, .pdf or .ods. It is a binary format, so a text editor will show unreadable characters rather than its contents.
Details
- Extension
- .xlsm
- Full name
- Excel Macro-Enabled Workbook
- Category
- Documents
- MIME type
- application/vnd.ms-excel.sheet.macroEnabled.12
- Created by
- Microsoft
- Format
- Binary
Common questions
- How do I open a .xlsm file?
- On Windows use Microsoft Excel; on macOS use Microsoft Excel; on Linux use LibreOffice Calc (macros may not run). An Excel workbook that contains VBA macros — and therefore executable code.
- What is a .xlsm file?
- Excel Macro-Enabled Workbook. XLSM is XLSX with a macro project inside. Excel opens it with macros disabled and a yellow "Enable Content" bar, and that bar is the whole point: enabling macros in a file from an unknown sender runs their code on your machine.
- Can I convert a .xlsm file?
- Yes. It is usually converted to .xlsx, .csv, .pdf or .ods, either by exporting from one of the programs listed above or with a format converter.
Related pages
- .pdf — Portable Document Format A fixed-layout document that looks identical everywhere — the format for anythin
- .docx — Word Document (Open XML) The standard Word document since Office 2007 — a zip archive of XML underneath.
- .xlsx — Excel Workbook (Open XML) The standard Excel spreadsheet since 2007, with a million-row limit per sheet.
- .pptx — PowerPoint Presentation (Open XML) The standard PowerPoint deck since 2007.
- .txt — Plain Text File Text with no formatting at all — the format that will still open in fifty years.
- .doc — Word Document (legacy binary) The pre-2007 Word format — still readable, but Microsoft would rather you conver
- .xls — Excel Workbook (legacy binary) The pre-2007 Excel format, limited to 65,536 rows.
- .ppt — PowerPoint Presentation (legacy binary) The pre-2007 PowerPoint format.
- .md — Markdown Document Plain text with a light formatting convention — headings with #, bold with **.
- .rtf — Rich Text Format A formatted document format readable by every word processor since 1987.
- .pages — Apple Pages Document Apple's word processor format — Apple devices and iCloud only.
- .odt — OpenDocument Text The open-standard word processor format, native to LibreOffice.
Sources
- Media Types Registry — IANA
- Official vendor product documentation — At One Place