Saving a Document with Macros

Macros are created using Visual Basic for Applications (VBA) code. If you add a macro to a document, you need to save it with a file name extension that ends with an “m”, either Word Macro-Enabled Document (.docm), or Word Macro-Enabled Template (.dotm). If you try to save a document containing a macro with a file name extension that ends with an “x” (such as .docx or .dotx), Word displays an alert message, restricting the operation. These Word file types are designated to be VBA code-free.

Save a Document with Macros

Image Click the File tab, and then click Save As.

Click Computer, and then click Browse or a recent folder. ...

Get Word 2013 on Demand now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.