Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Explicit
Sub CheckFiles()
Dim strPath As String
Dim strFile As String
Dim i As Integer
strPath = [red]"C:\Test\"[/red]
strFile = Dir(strPath & "*.csv")
Do While strFile <> ""
For i = 1 To 4
If LCase(strFile) = "file" & i & "_yyyymmdd.csv" Then
MsgBox "Bingo!, File is here: " & strFile
Exit For
End If
Next i
strFile = Dir
Loop
End Sub