.XLM 文件扩展名

Microsoft Excel 宏

开发者 Microsoft
受欢迎程度
3.9  |  56 票
 

什么是 XLM 文件?

XLM 文件包含一个或多个用于在 Microsoft Excel(电子表格应用程序)中自动执行流程的宏。它是一种用于执行复杂或重复性 Excel 操作的脚本,例如在单元格中插入数据或设置图表格式。

更多信息

Microsoft 于 1992 年发布 Excel 4.0 时引入了 XLM 文件。在 2000 年代后期 Microsoft 发布 Excel 2007 之前,Excel 用户普遍使用这类文件。Excel 2007 支持用户将宏与电子表格一起保存,并将这些电子表格保存为.XLSM或.XLTM文件。

虽然 XLM 文件不像以前那么常见,但你仍可能遇到随旧版 Excel 一起打包或由用户创建的 XLM 文件。若要在 Excel 4.0 到 2003 中创建 XLM 文件,请选择Tools → Macro → Record New Macro...。创建宏时,你可以为运行宏指定键盘快捷键。

注: 若要在 Excel 365 中查看或创建宏,请选择“View”选项卡,然后点击“Macros”。

如何打开 XLM 文件

你可以在 Windows 和 macOS 中使用Microsoft Excel打开 XLM 文件。不过,Microsoft 建议你将 XLM 宏迁移到较新版本的 Microsoft Visual Basic for Applications(VBA)。

如果你在尝试打开 XLM 文件时在 Excel 中遇到“security setting”错误消息,则需要更改应用程序中的宏设置,以便运行宏。请按以下步骤操作:

  1. 选择File → Options → Trust Center,然后点击Trust Center Settings
  2. 选择Macro Settings,然后点击“Enable all macros (not recommended; potentially dangerous code can run)”
  3. 选择File Block Settings,然后在“File Type”类别下选择“Excel 4 Macrosheets and Add-in files”(确认“Open”复选框已选中
  4. 在“Open behavior for selected file types”下选择“Open selected file types in Protected View and allow editing”,然后点击OK两次。

警告

XLM 文件可能被用于在受害者的计算机上传播并执行恶意软件攻击。为防范恶意攻击,切勿双击未知的 XLM 文件。在尝试于 Excel 中运行宏之前,请确认 XLM 文件来源的合法性。

使用File Viewer Plus打开 400 多种文件格式。免费下载

可打开 XLM 文件的程序

Windows
Mac
Web

经 FileInfo.com 验证

FileInfo.com 团队独立研究了本页面列出的 Microsoft Excel 宏文件格式和 Mac 和 Windows 应用。我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们。