Microsoft KB Archive/927150

= A macro that is contained in an encrypted Office Open XML file does not run in 2007 Office programs =

Article ID: 927150

Article Last Modified on 10/15/2007

-

APPLIES TO


 * Microsoft Office Excel 2007
 * Microsoft Office PowerPoint 2007
 * Microsoft Office Word 2007

-



SYMPTOMS
In one of the 2007 Microsoft Office programs that are listed in the &quot;Applies to&quot; section, when you try to run a macro that is contained in an encrypted Office Open XML file, such as an .xlsm file, a .docm file, or a .pptxm file, the macro does not run as expected. This behavior does not occur for files that are saved in the &quot;Microsoft Office 97 - 2003&quot; file format.

Note An encrypted file is a file that you protect by using any of the following methods:
 * Password protection
 * Information Rights Management (IRM)
 * Workbook protection in Microsoft Office Excel 2007



CAUSE
This behavior occurs if the computer is not running an active antivirus program that supports the scanning of encrypted content as supported by the Microsoft Antivirus API. In this case, macros are disabled in encrypted Office Open XML files.

Also, macros may be disabled in the file by the security settings in the program. If macros are disabled by the security settings, you receive the following error message when you try to open the file:

Security Alert Macros have been disabled.

To enable the macros, click Options, click Enabled this content, and then click OK. However, if you enable the macros, the behavior that is mentioned in the &quot;Symptoms&quot; section still occurs.

Security Alert This file contains encrypted macros that have been disabled because there is no antivirus software installed that can scan them. To run these macros, remove the encryption or permission restrictions on this file. File Path: Help protect me from unknown content (recommended)  Prevent encrypted macros from being scanned for viruses

The 2007 Office release provides several settings that enable you to prevent encrypted macros from being scanned for viruses. This is useful if your virus-scanning program does not support the Microsoft Antivirus application programming interface (API).

By default, macros are encrypted when you encrypt and save a file in the Office Open XML file formats. If your virus-scanning program does not support the Microsoft Antivirus API, your virus-scanning program cannot scan encrypted macros. Therefore, encrypted macros will be disabled.

To prevent your antivirus program from scanning encrypted macros, configure the settings as recommended in the last table on the following Microsoft Web site:

http://technet2.microsoft.com/Office/en-us/library/83308fb0-db8d-484b-a5ae-0757c162076b1033.mspx?mfr=true



RESOLUTION
To resolve this behavior, upgrade the antivirus program to a program that supports the scanning of encrypted content as supported by the Microsoft Antivirus API.

For information about how to contact the maker of your antivirus program, click the appropriate article number in the following list to view the article in the Microsoft Knowledge Base:

65416 Hardware and software vendor contact information, A-K

60781 Hardware and software vendor contact information, L-P

60782 Hardware and software vendor contact information, Q-Z



WORKAROUND
Warning This workaround may make a computer or a network more vulnerable to attack by malicious users or by malicious software such as viruses. We do not recommend this workaround but are providing this information so that you can implement this workaround at your own discretion. Use this workaround at your own risk.

To work around this issue, disable antivirus scanning on encrypted files that contain macros. To do this, follow these steps:
 * 1) Exit the 2007 Office programs.
 * 2) Click Start, click Run, type regedit, and then click OK.
 * 3) Locate and then click one of the following registry subkeys as appropriate:
 * 4) On the Edit menu, point to New, and then click DWORD Value.
 * 5) Type one of the following value names depending on the registry subkey that you clicked in step 3, and then press ENTER:
 * 6) * ExcelBypassEncryptedMacroScan
 * 7) * PPTBypassEncryptedMacroScan
 * 8) * WordBypassEncryptedMacroScan
 * 9) Right-click the DWORD value that you created in step 4, and then click Modify.
 * 10) In the Value data box, type 1, and then click OK.
 * 11) On the File menu, click Exit to exit Registry Editor.
 * 1) Right-click the DWORD value that you created in step 4, and then click Modify.
 * 2) In the Value data box, type 1, and then click OK.
 * 3) On the File menu, click Exit to exit Registry Editor.

Additional query words: excel2007 excel2k7 excel12 xl2007 xl2k7 xl12 powerpoint2007 powerpoint2k7 powerpoint12 ppt2007 ppt2k7 ppt12 word2007 word2k7 word12 wd2007 wd2k7 wd12 msoavapi

Keywords: kberrmsg kbtshoot kbapi kbprb kbexpertisebeginner kbantivirus KB927150

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.