.XLM File Extension

.XLM File Extension

File Type

Microsoft Excel Macro

Developer Microsoft
Popularity
3.9  |  53 Votes
Category Executable Files
Format Binary

What is an XLM file?

An XLM file contains one or more macros used for automating processes in Microsoft Excel, a spreadsheet application. It is a script used to perform complex or repetitive Excel functions, such as inserting data in cells or formatting charts.

More Information

Microsoft introduced XLM files in 1992 with the release of Excel 4.0. The files were commonly used by Excel users until the late-2000s, when Microsoft released Excel 2007. Excel 2007 enabled users to save macros with spreadsheets and save those spreadsheets as .XLSM or .XLTM files.

While XLM files are not as common as they once were, you may still encounter an XLM file that was packaged with an older version of Excel or created by a user. To create an XLM file in Excel 4.0 to 2003, select Tools → Macro → Record New Macro.... When creating the macro, you can assign a keyboard shortcut to run the macro.

NOTE: To view or create a macro in Excel 365, select the "View" tab, then click "Macros."

How do I open an XLM file?

You can open XLM files with Microsoft Excel in Windows and macOS. However, Microsoft encourages you to migrate the XLM macro to a later version of Microsoft Visual Basic for Applications (VBA).

If you encounter a "security setting" error message in Excel when trying to open an XLM file, you need to change the macro settings in the application to run the macro. To do this, follow these steps:

  1. Select File → Options → Trust Center and click Trust Center Settings
  2. Select Macro Settings, and click "Enable all macros (not recommended; potentially dangerous code can run)"
  3. Select File Block Settings and choose "Excel 4 Macrosheets and Add-in files" under the "File Type" category (verify that the "Open" checkbox is checked
  4. Choose "Open selected file types in Protected View and allow editing" under "Open behavior for selected file types" and click OK twice.

Warning

XLM files may be used to distribute and execute malware attacks on victims' computers. To protect against malicious attacks, never double-click an unknown XLM file. Verify the legitimacy of the source of the XLM file before attempting to run the macro in Excel.

Open over 400 file formats with File Viewer Plus.Free Download

Programs that open XLM files

Windows
Mac
Web
Updated February 10, 2021

Verified by FileInfo.com

The FileInfo.com team has independently researched the Microsoft Excel Macro file format and Mac and Windows apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified.

If you would like to suggest any additions or updates to this page, please let us know.