I want to open the file starting with "Sales Records", and used the below code,
But I get the error message that Excel can't find ...Sales Records*.xlsx
Seems like Excel doesn't see * as wildcard in the below code but as part of the filename. Thank you.
--------------
Dim Fname As String
Dim WB1 As Workbook
Application.ScreenUpdating = False
Fname = ThisWorkbook.Name
Set WB1 = Workbooks(Fname)
Workbooks.Open Filename:=WB1.Path & "" & "Sales Records*.xlsx"
Last edited: