a macro that is contained in an encrypted office open xml file does not run in 2007 office programs

2

Click here to load reader

Upload: sun-narto

Post on 28-Jul-2015

34 views

Category:

Documents


3 download

TRANSCRIPT

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

Article ID: 927150 - Last Review: September 7, 2010 - Revision: 6.0

A macro that is contained in an encrypted Office Open XML file doesnot run in 2007 Office programs

In one of the 2007 Microsoft Office programs that are listed in the "Appliesto" 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 occurfor files that are saved in the "Microsoft Office 97 - 2003" file format.

Note An encrypted file is a file that you protect by using any of the following methods:

Password protectionInformation Rights Management (IRM)Workbook protection in Microsoft Office Excel 2007

This behavior occurs if the computer is not running an active antivirusprogram that supports the scanning of encrypted content as supported by the Microsoft Antivirus API. Inthis 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 bythe security settings, you receive the following error message when you try to open the file: SecurityAlert Macros have been disabled .To enable the macros, click Options , click Enable this content, and then click OK. However, if you enablethe macros, the behavior that is mentioned in the "Symptoms" section still occurs. Security Alert This file contains encrypted macros that have been disabled because there is no antivirussoftware installed that can scan them. To run these macros, remove the encryption or permissionrestrictions on this file. File Path: <path and name of file> Help protect me from unknown content(recommended) <More information> Prevent encrypted macros from being scanned for viruses.

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

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

To resolve this behavior, install 'The 2007 Microsoft Office Suite Service Pack2 (SP2) which can be downloaded from the Microsoft Download Center athttp://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=b444bf18-79ea-46c6-8a81-9db49b4ab6e5 (http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=b444bf18-79ea-46c6-8a81-9db49b4ab6e5)

Warning This workaround may make a computer or a network morevulnerable to attack by malicious users or by malicious software such as viruses. We do not recommendthis workaround but are providing this information so that you can implement this workaround at your

SYMPTOMS

CAUSE

RESOLUTION

WORKAROUND

12/01/2011 A macro that is contained in an encryp…

http://support.microsoft.com/kb/927150 1/2

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

Microsoft Support©2011 Microsoft

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:

HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\SecurityHKEY_CURRENT_USER\Software\Microsoft\Office\12.0\PowerPoint\SecurityHKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Word\Security

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:ExcelBypassEncryptedMacroScanPowerPointBypassEncryptedMacroScanWordBypassEncryptedMacroScan

6. Right-click the DWORD value that you created in step 4, and then click Modify.7. In the Value data box, type 1, and then click OK.8. On the File menu, click Exit to exit Registry Editor.

Note The steps above should not beused after Office 2007 SP2 has been installed. This registry information is also provided in the '2007Microsoft Office Security Guide', but that documentation was created prior to the release of the Office 2007Service Pack 2. Note This is a "FAST PUBLISH" article created directly fromwithin the Microsoft support organization. The information contained herein is provided as-is in responseto emerging issues. As a result of the speed in making it available, the materials may include typographicalerrors and may be revised at any time without notice. See Terms of Use (http://go.microsoft.com/fwlink/?LinkId=151500) for other considerations.

APPLIES TO

Keywords: kberrmsg kbapi kbantivirus kbtshoot kbexpertisebeginner kbprb KB927150

Get Help Now

Contact a support professional by E-mail, Online, or Phone

12/01/2011 A macro that is contained in an encryp…

http://support.microsoft.com/kb/927150 2/2