Get list of Excel files in a folder using VBA [duplicate]
Ok well this might work for you, a function that takes a path and returns an array of file names in the folder. You could use an if statement to get just the excel files when looping through the array. Function listfiles(ByVal sPath As String) Dim vaArray As Variant Dim i As Integer Dim oFile … Read more