Dim FName As String
FName = Dir(FL1-LD*PRESS REPORT*2024-09-05*)
If InStr(UCase(Fname), "DIG") = 0 Then
' Open the file
End If
Thanks so much man! I tried to delete my post because I figured it out, but I actually like your solution better!! Sweet!If you are using Dir it will be something like this:
VBA Code:Dim FName As String FName = Dir(FL1-LD*PRESS REPORT*2024-09-05*) If InStr(UCase(Fname), "DIG") = 0 Then ' Open the file End If
FName = Dir("FL1-LD*PRESS REPORT*2024-09-05*")