Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: Illegal Operation Error if Chart Gallery File Is Password-Protected


View products that this article applies to.

This article was previously published under Q211958

↑ Back to the top


Symptoms

In Microsoft Excel, when you click Chart Type on the Chart menu, and then click the Custom Types tab, the following error message may appear:
This program has performed an illegal operation and will be shut down. If the problem persists, contact the program vendor.
If you click Details, a message similar to the following appears:
EXCEL caused an invalid page fault in module EXCEL.EXE at 0137:300af7a2.

↑ Back to the top


Cause

This behavior can occur if either of the following conditions is true:
  • The Xl8galry.xls file is password-protected.

    -or-
  • The Xlusrgal.xls file is password-protected.

↑ Back to the top


Workaround

To work around this issue, follow these steps to remove the password protection from the Xl8galry.xls or the Xlusrgal.xls file:
  1. Open the appropriate file (Xl8galry.xls or Xlusrgal.xls).

    By default, the files are stored in the Program Files\Microsoft Office\Office folder.

    NOTE: The Xl8galry.xls and Xlusrgal.xls files are chart autoformat files. These files store custom chart formats.
  2. On the File menu, click Save As.
  3. In the Save As dialog box, click Tools, and then click General Options.
  4. In the Save Options dialog box within the Password to open box, click the password.
  5. Press DELETE, and then click OK.
  6. Click Save, and then click Yes when you are prompted about overwriting the existing copy of the file.
If you do not know the password, delete the chart autoformat file that is password-protected. Note that if you delete the Xlusrgal.xls file, you lose any custom chart formats that you created.

If you delete the Xl8galry.xls file, you can re-create the file only by using the following steps:
  1. Start the Microsoft Office Setup program.

    NOTE: Because you have already installed Microsoft Office, the Setup program runs in maintenance mode.
  2. In the first dialog box that appears, click Reinstall.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


More information

Xl8galry.xls stores custom chart formats that come with Excel 2000. Xlusrgal.xls stores any custom chart formats that you create. Excel does not create Xlusrgal.xls until you create a custom chart format.

↑ Back to the top


References

For additional information about working with custom chart types inMicrosoft Excel, click the article number below to view the article in the Microsoft Knowledge Base:
211960� XL2000: Setting Default and User-Defined Chart Types
For more information about custom chart types, click Microsoft Help on the Help menu, type save a custom chart type to apply to other charts in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

↑ Back to the top


Keywords: KB211958, kbpending, kberrmsg, kbchart, kbbug

↑ Back to the top

Article Info
Article ID : 211958
Revision : 4
Created on : 9/27/2003
Published on : 9/27/2003
Exists online : False
Views : 309