I need to check if there is a folder which name is include Today's date.
This is the path looks like;
B:\NOS\EIhracat\Credit\2022\34- 17.09.2022\Nakit List.xlsx
But I have a problem about folder names. There are a lot of subfolder looks like "34- 17.09.2022" or "15- 16.09.2022" etc. under Years. The numbers before the date are changing randomly, I don't need them.
How can I find the folder name which is ends with Today's Date (or starts with Today's date. I can move the numbers after date)
I tried this one.
dtToday = Format(Date, "dd.mm.yyyy")
dtYear = Format(Date, "yyyy")
Ihracat = "B:\NOS\EIhracat\Credit\" & dtYear & "\"
strFileName = Ihracat & "*dtToday & "\" & "Nakit List.xlsx"
strFileExists = Dir(strFileName)
If strFileExists = "" Then
MsgBox "Can't find!"
Else