Hello
I have a file name "Work_outstanding_010411.xls". I am trying to open the workbook with VBA using only part of the file name, see below.
But I keep getting error saying the workbook can not be found.
Is it possible to open a workbook using the beginning of the file name only as opposed to the entire name? The beginning is always the same however the date only changes.
Thanks
I have a file name "Work_outstanding_010411.xls". I am trying to open the workbook with VBA using only part of the file name, see below.
Code:
Workbooks.Open Filename:="C:\Work\Work_outstanding_*"
But I keep getting error saying the workbook can not be found.
Is it possible to open a workbook using the beginning of the file name only as opposed to the entire name? The beginning is always the same however the date only changes.
Thanks