What are docm Files?

Docm is a new file extension in Word 2007. It is a close cousin to the docx file, but the “M” stands for macro.

docm and special icon mean document contains a macroIn Word 2007, any file that contains a macro must be saved with this file extension.

You can still save a document that contains a macro as a docx file, but the macro will not be saved with the document.

There are security reasons why Microsoft created the new file extension.

A macro is a piece of Visual Basic (VB) programming code that is embedded in the file. This programming code runs a script…which also means if it contains a virus, you allow the virus program to run on your computer.

Caution: Docm files contain programming code that could possibly contain a virus. Always scan received files with your anti-virus program before opening them.

The new extension alerts you that there is potentially harmful code contained in the document so you can take security precautions when opening it.

This article explains how to:


Opening Word 2007 Macro-Enabled Files

If you do not own Word (or you own a previous version of Word) and cannot open a macro-enabled file, see the Word Tip How to Open docx Files without Word 2007.

Open a docm file the same way you open any Word file, double-click on the file name or the file icon and the file will open.

Even if you use Word 2007, you may have to change some program settings to use a Microsoft Word macro-enabled document. Overall security settings are changed in the Trust Center.


Changing the Trust Center Settings

If you are using Word 2007, but cannot run a macro in a macro-enabled file, check your document security settings. Here is how to access the Trust Center and view or change the settings:

  1. Click the Office Button.
    The Office 2007 Button
  2. Click Word Options.
  3. In the Word Options dialogue box, select Trust Center.
  4. Under Microsoft Office Word Trust Center, click Trust Center Settings.
    Trust Center Settings button
  5. Select Macro Settings.
    Select Macro Settings
  6. Choose the appropriate security settings for your working environment.

As you can see from the screenshot, I selected Disable all macros with notification. This disables macros in any documents I open unless they are located in a trusted location. (Trusted location settings can be changed by selecting Trusted Locations in the Trust Center.)

If you never expect to open documents that contain macros and want the highest document security settings enabled, select either Disable all macros without notification or Disable all macros except digitally signed macros.

I do not recommend selecting Enable all macros unless you know you are in a closed and secure computing environment (which is not likely).

If you open a document that violates your Trust Center rules, such as a document from an unknown source or one which is not located in a trusted location, the macro will be disabled and a security warning appears.

Security Warning: macros disabled



Enabling a Macro that has been Disabled

What happens when you receive a macro-enabled file and you want to run the macro, but Word has disabled it? It is easy to enable it:

  1. Before opening the file, scan it with your anti-virus program to make sure the macro does not contain a virus.
  2. Open the file.
  3. On the Security Warning bar, click Options.
  4. Select Enable this content.
    alert box: enable a macro
  5. Click OK.

You can now run Microsoft Word macros that are contained in the docm file.

Go back to the Word Tips page

Return from docm to the Microsoft Word homepage


New on Word Tips

Microsoft Word Styles
Includes the
Style Basics Tutorial

Download the Office 2010 Free Trial



Hop On Board the

Word Tips Express!

Subscribe to my ezine and get Word 2007 tips, articles, and shortcuts delivered to you once a month!

(See a sample issue)


Email

Name

Then


Don't worry -- your e-mail address is totally secure. I promise to use it only to send you
Word Tips Express.