Article ID: 213983 - Last Review: May 3, 2007 - Revision: 3.7 Error message when you open or save a file in Microsoft Excel: "Filename is not valid"This article was previously published under Q213983 ERROR MESSAGE
When you open or save a file in Microsoft Excel, you may receive one
of the following error messages: Error message 1
Filename is not valid.
The file could not be accessed.
The path you entered, '<filename>', is too long. Enter a shorter
path.
<Filename> could not be found. Check the spelling of the filename, and verify that the file location is correct.
In Microsoft Office Excel 2007, you may receive the following error message: '<Filename>.<extension>' could not be found. Check the spelling of the file name, and verify that the file location is correct. If you are trying to open the file from your list of most recently used files on the File menu, make sure that the file has not been renamed, moved, or deleted. 100202 http://www.microsoft.com/downloads/details.aspx?FamilyID=8FBEE1D3-C5BB-4A36-A2F7-DC63DE2A818C
(http://www.microsoft.com/downloads/details.aspx?FamilyID=8FBEE1D3-C5BB-4A36-A2F7-DC63DE2A818C)
Note If you reached this article by clicking the Web Info button in an error message, you already have Customizable Alerts enabled. For more information about how to use the Microsoft Office 2000 Customizable Alerts, visit the following Microsoft Web site: http://www.microsoft.com/downloads/details.aspx?FamilyID=8FBEE1D3-C5BB-4A36-A2F7-DC63DE2A818C&displaylang=en#Instructions
(http://www.microsoft.com/downloads/details.aspx?FamilyID=8FBEE1D3-C5BB-4A36-A2F7-DC63DE2A818C&displaylang=en#Instructions)
CAUSE
This error message occurs when you save or open a file if the path to the
file (including the file name) exceeds 218 characters. This limitation
includes three characters representing the drive, the characters in folder
names, the backslash character between folders, and the characters in the
file name.
This behavior is based on a 256-character limitation in Excel for creating links to another file. This limit of 218 characters for the path name is based on the following:
'c:\excel\personal\...\[my workbook.xls]up_to_31_char_sheetname'!$A$1 Note This behavior will also occur if there is a square bracket in the path. THINGS TO TRY
Make sure that the path to the file contains fewer than 219 characters.
To do this, use one of the following methods:
MORE INFORMATION
Note that if you enter 255 characters in the File Name box in the
Save As dialog box, and click OK, you will receive
the following error message:
The path you entered, "<path>", is too long. Enter a shorter path.
The file could not be accessed. Try one of the following: - Make sure the specified folder exists. - Make sure the folder that contains the file is not read-only. - Make sure the file name does not contain any of the following characters: < > ? [ ] : | *. - Make sure the file/path name doesn't contain more than 218 characters. | Article Translations
|
Back to the top
