Insert Chart Causes Microsoft Excel to Fail When CSV File Contains Brackets (306656)
The information in this article applies to:
- Microsoft Office Excel 2003
- Microsoft Excel 2002
- Microsoft Excel 2000
- Microsoft Excel 97 for Windows
This article was previously published under Q306656 SYMPTOMS If you open a CSV file in Microsoft Excel, and then insert
a chart by using the Chart Wizard, Microsoft Excel may unexpectedly fail with
an access violation if the CSV file that you opened contains brackets ([ ]) in
the name. If you open the CSV file in Microsoft Internet Explorer, the brackets
may be added by Internet Explorer when a duplicate item by the same name
already exists in the local cache. The exact error message depends on
the version of Microsoft Excel that you are using, and how the chart is added.
For example, in Microsoft Excel 2002 or later, a Microsoft Office Dr. Watson
dialog box appears, prompting you to restart Microsoft Excel and attempt a
recover. However, in Microsoft Excel 97 or 2000, the application fails and
Microsoft Windows displays a standard error message for an access violation:
The instruction at "0x3049acca" referenced memory at
"0x000000a0". The memory could not be "read". CAUSE When you build a chart by using the Microsoft Excel Chart
Wizard, you specify a range of data to use for the chart and a chart location.
These ranges are qualified with the sheet name. Because CSV files are simple
text files (and do not support multiple sheets or unique names), Microsoft
Excel uses the file name for the sheet name. However, if this sheet name
contains a square bracket (which it does if the file name also has the
bracket), Microsoft Excel mistakes the bracket for a range qualifier, which
eventually causes Microsoft Excel to fail when it tries to resolve the linked
range. RESOLUTION Do not use file names for your CSV files that contain
square brackets in the name. If you plan to open CSV files in Microsoft Excel
from Internet Explorer, consider returning them as attachments, and have the
user save them to disk before opening them in Microsoft Excel. Internet
Explorer removes the brackets that it uses for cache items when they are saved
to disk. STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 7/28/2006 |
---|
Keywords: | kbbug kbpending KB306656 |
---|
|