|
呵呵~是可以的
快下班了时间不多,只能告诉你方法
先把数据库集中起来放置在一个文件夹,在通过fso来获得文件夹内的文件
Sub ShowFolderList(strFolderPath As String) '向待导入数据列表矿添加数据的过程
Dim i As Long
Dim fso As Object
Dim objFolder As Object
Dim objFile As Object
Set fso = CreateObject("Scripting.FileSystemObject")
Set objFolder = fso.GetFolder(strFolderPath)
Me.List1.RowSource = ""
For Each objFile In objFolder.Files
Me.List1.AddItem (objFile.Name)
Next
Set objFile = Nothing
Set objFolder = Nothing
Set fso = Nothing
End Sub
在用循环对列表框的文件名逐一检查即可~ |
|