用FSO对象
现在“工程”->“引用”中加入“Microsoft Scripting Runtime”
在你需要的地方写下如下代码: Dim fso As New FileSystemObject
Dim Folder As Folder
Dim File As File
Set Folder = fso.GetFolder("Your Folder Path")
For Each File In Folder.Files
MsgBox File.Name
Next
现在“工程”->“引用”中加入“Microsoft Scripting Runtime”
在你需要的地方写下如下代码: Dim fso As New FileSystemObject
Dim Folder As Folder
Dim File As File
Set Folder = fso.GetFolder("Your Folder Path")
For Each File In Folder.Files
MsgBox File.Name
Next
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货