Set fs = Application.FileSearch
With fs
.NewSearch
.LookIn = "C:\DefectMgmt"
.Filename = prod_rel & "_*_" & curdate & ".xls"
If .Execute = 0 Then
MsgBox "Could not find input file - ABORT"
Exit Sub
End If
End With
With fs
.NewSearch
.LookIn = "C:\DefectMgmt"
.Filename = prod_rel & "_*_" & curdate & ".xls"
If .Execute = 0 Then
MsgBox "Could not find input file - ABORT"
Exit Sub
End If
End With