I have the following short vba code to open a file which name begins with the string "QryCECARFSECTORIAL". Neverthless, since the file name is not composed only by that string and it varies every day, I've used the metacharacter "*" as following:
Sub prueba2()
Dim WB As Workbook
Set WB = Workbooks.Open("V:\evfilesce9i9\RF Sectorial 2018-05\QryCECARFSECTORIAL*")
When I use it, the code doesn't find the file in question (I've already checked and the file indeed exists)
¿Am I using metacharacter "*" in the right way?