File formats that work with Visual Basic

You can create macros and then save the file in any of the following file types.

File format

Description

Word 97-2004 Template (.dot)

Saves the document as a template that you can use to start new documents. Saves document content and settings such as styles, page layout, AutoText entries, custom keyboard shortcut assignments, and menus. Compatible with Word 97 through Word 2003 for Windows and Word 98 through Word 2004 for Mac.

Word Macro-Enabled Document (.docm)

The XML-based document format that preserves VBA macro code. VBA macros run in Word 2011, but they do not run in Word 2008.

Word Macro-Enabled Template (.dotm)

Saves the document as an XML-based template that preserves VBA macro code. VBA macros run in Word 2011, but they do not run in Word 2008.