Answers for "vba iterate files in folder"

VBA
1

vba loop through files in folder

'The short version
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("SELECT * FROM Contacts")
If Not (rs.EOF And rs.BOF) Then
	Do Until rs.EOF = True
		rs.MoveNext
	Loop
End If
rs.Close
Set rs = Nothing
Posted by: Guest on March-02-2021
0

iterate all file in a folder vba

Dim StrFile As String
StrFile = Dir("c:testfolder*test*")
Do While Len(StrFile) > 0
Debug.Print StrFile
StrFile = Dir
Loop
Posted by: Guest on January-26-2021

Code answers related to "vba iterate files in folder"

Code answers related to "VBA"

Browse Popular Code Answers by Language