Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 VBA Access 如何删除多个 xls 文件?有 3 个报告是通过保存到我的文档文件夹的过程生成的。在同样的意义上,如果我不想删除它们但存档它们,我将如何将所有这 3 个文件移动到另一个文件夹?
要删除文件:
Kill "Path\to\file.xls"
要移动文件:
Name "Path\to\file.xls" As "New\Path\to\file.xls"
Dim fso as New FileSystemObject fso.DeleteFile "C:\MyDocs\*.xls"
或者
fso.MoveFile "C:\MyDocs\*.xls" "C:\Archive\"