I'm trying to use the open filename command to open a specific file for printing the problem is the filename is always changing, I've tried using wildcards but no success. The "00-00.xls" portion of the name changes randomly since the last two digits of the name are seconds, causing the open command to fail sometimes.
Any suggestions?
Thanks
The code:
Workbooks.Open Filename:="c:\DeltaV Reporter\Reports\Daily\daily." & Format(Date, "yyyy-mm-dd") & " " & Hour(Now()) & "-00-00.xls"
Any suggestions?
Thanks
The code:
Workbooks.Open Filename:="c:\DeltaV Reporter\Reports\Daily\daily." & Format(Date, "yyyy-mm-dd") & " " & Hour(Now()) & "-00-00.xls"