XL2000: Macro Cannot Open a File That Has No Extension (213785)
The information in this article applies to:
This article was previously published under Q213785 SYMPTOMS
In Microsoft Excel 2000, when you use a macro to open a file, the wrong file may be opened.
CAUSE
This may occur if the following conditions are true:
- The name of the file you are trying to open has no extension. For example, it is named "Noext".
-and-
- The file you are trying to open is in the same folder as another file
whose name is identical but whose name includes a recognized file
extension (for example, "Noext.xls").
RESOLUTION
A Microsoft Visual Basic for Applications macro in Microsoft Excel 2000 cannot use the Workbooks.Open command to open a file with no extension if a file whose name is identical but contains a recognized extension exists in the same folder.
For this reason, Microsoft strongly recommends that you include an
extension when you name your data files.
Microsoft also recommends that you include the file extension in the
FileName argument of the Workbooks.Open command, if possible.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbbug kbpending kbProgramming KB213785 |
---|
|