The information in this article applies to:
SYMPTOMSIn Microsoft Excel 2000, when you use a macro to open a file, the wrong file may be opened. CAUSEThis may occur if the following conditions are true:
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.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATIONIn Microsoft Excel, you can use the Workbooks.Open command within a Visual Basic for Applications macro to open files. Usually, the command looks similar to the following:
If you have a file whose name contains no extension, you can usually open
it with the Workbooks.Open command. For example, the command would look like this:
This command works correctly and opens the file "Noext", unless a file
whose name is identical but includes a recognized file extension exists in
the same folder. The following extensions are recognized by Microsoft Excel
2000:
If such a file exists in the same folder as the file without an
extension, that file opens instead.
Additional query words:
Keywords : kbprg kbdta xlloadsave KbVBA |
Last Reviewed: November 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |