Düzenle

Aracılığıyla paylaş


XML file name extension reference for Office

Applies to: Office 2019, Office 2016

XML file formats and their extensions are listed in the following tables for Word, Excel, PowerPoint, and Visio.

XML file types for Word

The following table describes the file type, extension, and description for Word XML file formats.

XML file types for Word

Word file type Extension Description
Word Document
.docx
The default Word file format. Can't store VBA macro code.
Strict Open XML document
.docx
Conforms to the Strict profile of the Open XML standard (ISO/IEC 29500). This profile of Open XML doesn't allow a set of features that were designed specifically for backward-compatibility with existing binary documents, as specified in Part 4 of ISO/IEC 29500.
Word Macro-Enabled Document
.docm
Uses the same basic XML format as the Word document format, but can store VBA macro code. This file type is created when VBA macro code is present in the file.
Word Template
.dotx
The default format for a Word template. Created when document styles and formatting are saved. Can't store VBA macro code.
Word Macro-Enabled Template
.dotm
Stores macro code for use with other Word documents. Does not always contain macro code, but is configured to support the storage of macro code. Word documents created from a macro-enabled template do not inherit the VBAProject part of the template. By default, documents are saved as .docx files even when they are created from a Word macro-enabled template.

XML file types for Excel

The following table describes the file type, extension, and description for Excel XML file formats.

XML file types for Excel

Excel file type Extension Description
Excel Workbook
.xlsx
The default Excel file format. Can't store VBA macro code or Microsoft Excel 4.0 macro sheets (.xlm files in Excel 4.0).
Strict Open XML Spreadsheet
.xlsx
An ISO strict version of the Excel Workbook file format (.xlsx).
Excel Macro-Enabled Workbook
.xlsm
Uses the same basic XML format as the Excel Workbook, but can store VBA macro code. Users who save an Excel workbook that has VBA code or Excel 4.0 macro sheets (.xlm files in Excel 4.0) are prompted to use this file format.
Excel Template
.xltx
The default file format for an Excel template. Can't store VBA macro code or Excel 4.0 macro sheets (.xlm files in Excel 4.0).
Excel Macro-Enabled Template
.xltm
Can contain a VBAProject part or Excel 4.0 macro sheets (.xlm files in Excel 4.0). Workbooks created from this template inherit the VBAProject part or Excel 4.0 macro sheets that exist in the template.
Excel Add-In
.xlam
A supplemental program that runs additional code. Excel add-ins use the Open XML file format to store data, and they support using VBA projects and Excel 4.0 macro sheets.

XML file types for PowerPoint

The following table describes the file type, extension, and description for PowerPoint XML file formats.

XML file types for PowerPoint

PowerPoint file type Extension Description
PowerPoint Presentation
.pptx
The default PowerPoint XML format. Can't contain a VBAProject part (the part that stores VBA macro code) or Action settings.
Strict Open XML Presentation
.pptx
An ISO strict version of the PowerPoint Presentation file format (.pptx).
PowerPoint Macro-Enabled Presentation
.pptm
The same basic XML format as the PowerPoint XML presentation format, but can store VBA macro code. Users who save a PowerPoint XML presentation file that contains VBA macro code are prompted to use this file type.
PowerPoint Template
.potx
An XML-based PowerPoint template. Created when a presentation does not have a VBAProject part and does not use Action settings.
PowerPoint Macro-Enabled Template
.potm
Users who save a PowerPoint XML template that contains VBA macro code are prompted to use this file type. Presentations created from this template do not inherit the VBAProject part or Action settings.
PowerPoint Add-In
.ppam
PowerPoint presentation designed to be run as a supplemental program. All PowerPoint add-ins are macro-enabled.
PowerPoint Show
.ppsx
An XML-based PowerPoint auto-running slide show. Can't contain a VBAProject part.
PowerPoint Macro-Enabled Show
.ppsm
An XML-based PowerPoint slide show file that contains a VBAProject part. Created when the auto-running slide show includes VBA macro code.

XML file types for Visio

Visio uses the XML file format package that is defined by the Open Packaging Conventions (ISO/IEC 29500-2:2008) standard. The XML content is based on the existing Visio XML Drawing (VDX) format.

The following table describes the file type, extension, and description for Visio XML file formats.

XML file types for Visio

Visio file type Extension Description
Visio Drawing
.vsdx
The default Visio file format. Can't store VBA macro code.
Visio Macro-Enabled Drawing
.vsdm
Uses the same basic XML format as the Visio drawing format (.vsdx), but can store VBA macro code. This file type must be used when VBA macro code is present in the file.
Visio Stencil
.vssx
The default format for a Visio stencil. Can't store VBA macro code.
Visio Macro-Enabled Stencil
.vssm
Uses the same basic XML format as the Visio Stencil (.vssx) format, but can store VBA macro code. Does not always contain macro code, but is configured to support the storage of macro code.
Visio Template
.vstx
The default format for a Visio template. Can't store VBA macro code.
Visio Macro-Enabled Template
.vstm
Uses the same basic XML format as the Visio Template (.vstx) format, but can store VBA macro code. Does not always contain macro code, but is configured to support the storage of macro code. Visio Drawings that are created from this template inherit the VBAProject part that exists in the template. However, by default, drawings are saved as .vsdx files even when they are created from a Visio macro-enabled template and will drop the VBAProject part.