vba loop through files in folder

The solution for “vba loop through files in folder” can be found here. The following code will assist you in solving the problem.

‘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
End If
Set rs = Nothing

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts