With Application.FileSearch ??这里就出错?
时间: 2024-06-03 15:13:18 浏览: 53
文件搜索问题
Yes, that's correct. The `Application.FileSearch` method was used in older versions of Excel to search for files in a directory. But it was removed in Excel 2007 and later versions. So if you are using a newer version of Excel, you will get an error if you try to use `Application.FileSearch`.
Instead, you can use other methods such as the `Dir` function or the `FileSystemObject` to search for files in a directory.
阅读全文