Seamus2626
asked on
Open file with changing month
Hi,
I have a file called
Call_Report_June_2014.xlsx
next month it will be
Call_Report_July_2014.xlsx
It will be ran on the 01/08/2014
Can i get some code that recognises the last month, so on 01/08/2014 - it will seek file name
Call_Report_July_2014.xlsx
on the 01/09/2014 it will seek file name
Call_Report_September_2014 .xlsx
Many thanks
I have a file called
Call_Report_June_2014.xlsx
next month it will be
Call_Report_July_2014.xlsx
It will be ran on the 01/08/2014
Can i get some code that recognises the last month, so on 01/08/2014 - it will seek file name
Call_Report_July_2014.xlsx
on the 01/09/2014 it will seek file name
Call_Report_September_2014
Many thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Got it
Workbooks.Open (strFile)
Workbooks.Open (strFile)
ASKER
Thanks