Microsoft KB Archive/945797

= Error message when you try to save a file in Excel 2007 or in Excel 2003: &quot;You are attempting to save a file that is blocked by your registry policy setting&quot; =

Article ID: 945797

Article Last Modified on 12/19/2007

-

APPLIES TO


 * Microsoft Office Excel 2007
 * Microsoft Office Excel 2003

-



SYMPTOMS
When you try to save a file in Microsoft Office Excel 2007 or in Microsoft Office Excel 2003, the file is not saved. Additionally, you receive the following error message:

You are attempting to save a file that is blocked by your registry policy setting.



CAUSE
This issue may occur if an administrator has restricted the types of files that you can open or save in Excel 2007 or in Excel 2003. An administrator can set a registry key to do this.

For Excel 2007, the registry key can be set in the 2007 Office System Administrative Template files. For more information, see the &quot;Excel 2007&quot; subsection of the &quot;More information&quot; section.

For Excel 2003, update 933666 enables an administrator to block the ability to save or to open files in Excel 2003. For more information, see the &quot;Excel 2003&quot; subsection of the &quot;More information&quot; section.

By default, the following files are blocked in Excel 2003 Service Pack 3:
 * Microsoft Excel 4.0 charts (*.xlc)
 * DBF 2 (dBASE II) (*.dbf)

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

938810 Information about certain file formats that are blocked after you install Office 2003 Service Pack 3



RESOLUTION
To resolve this issue, take one of the following actions:
 * Ask the system administrator to change the group setting policy.
 * Try to save the file in a file format that is not blocked by the administrator.



Excel 2007
To restrict the types of files that you can save in Excel 2007, an administrator can use the 2007 Office System Administrative Template files to configure the registry on the client computer.

The following table contains the DWORD names that an administrator can add to the registry to restrict certain file types by using the FileSaveBlock subkey. Additionally, the table contains the corresponding file types that are restricted.

Notes  To download the 2007 Office System Administrative Template files, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?FamilyID=92d8519a-e143-4aee-8f7a-e4bbaeba13e7&DisplayLang=en

 For more specific information about how to block the opening and saving of file formats in the 2007 Office programs, visit the following Microsoft Web site, and then see the &quot;Enforce settings by using Group Policy in the 2007 Office system&quot; topic:

http://technet2.microsoft.com/Office/en-us/library/873a5392-1b1a-47a1-a863-1f29ef116d0e1033.mspx



Excel 2003
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows XP and Windows Vista

An administrator can restrict the types of files that you can save in Excel 2003. This ability was not provided in the release version of Microsoft Office 2003. To restrict the types of files that can be saved in Excel 2003, install security update 933666. For more information about security update 933666, click the following article number to view the article in the Microsoft Knowledge Base:

933666 Description of the security update for Excel 2003: May 8, 2007

To restrict the types of files that you can save in Excel 2003, an administrator can use one of the following methods:  Use the updated Office 2003 Administrative Template files to configure the registry on the client computer. To download the Office 2003 Service Pack 3 Administrative Template (ADM) files, OPA files, and the Explain Text Update, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?familyid=BA8BC720-EDC2-479B-B115-5ABB70B3F490&displaylang=en

 Modify the registry by adding a registry key setting on the client computer.

The following table contains the DWORD names that an administrator can add to the registry to restrict certain file types by using the FileSaveBlock subkey. Additionally, the table contains the corresponding file types that are restricted.

To enable the FileSaveBlock subkey settings, follow these steps: <ol> Exit Excel.</li> For Excel 2003, install security update 933666 if it is not installed.</li> Click Start, click Run, type regedit in the Open box, and then click OK.</li> Locate and then click to select one of the following registry subkeys:

Excel 2007

Excel 2003

Note If the FileSaveBlock subkey does not exist, create it. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Click to select the Security subkey.</li> On the Edit menu, point to New, and then click Key.</li> Type FileSaveBlock, and then press ENTER.</li></ol> </li> On the Edit menu, point to New, and then click DWORD Value.</li> Type the DWORD name for the files that you want to restrict, and then press ENTER. For example, to restrict the .xls, .xla, .xlt, .xlm, .xlw, and .xlb file types, type BinaryFiles .</li> Right-click the DWORD name that you typed in step 6, and then click Modify.</li> In the Value data box, type 1, and then click OK.</li> On the File menu, click Exit to exit Registry Editor.</li></ol>

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

922848 You receive an error message when you try to open a file type that was blocked by your registry policy settings in Excel 2007 or in Excel 2003

Additional query words: excel2007 excel2k7 excel12 xl2007 xl2k7 xl12 excel2003 excel2k3 excel11 xl2003 xl2k3 xl11

Keywords: kbsavefile kbopenfile kberrmsg kbexpertisebeginner kbtshoot kbprb KB945797

-

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

© Microsoft Corporation. All rights reserved.