mightyujin
New Member
- Joined
- Jun 15, 2011
- Messages
- 12
Hi there, i have created a table that compares 2 data, one from this file called "daily_report.xls" and one where the table is, let's say "compare.xls". However i need to change "daily_report.xls" to "date_month.xls" i.e., "14_06.xls" once the comparison is done. I put a VBA that automatically saves to the designated file name, but the source code in the table also changes from
=SUM('C:\\Daily_LCY\[daily_report.xls]A&L'!$B:$Q)
to
=SUM('C:\\Daily_LCY\[14_06.xls]A&L'!$B:$Q).
I don't know how to make the formula to stay constant without changing the file name while the file only changes its name.
Any ideas?
=SUM('C:\\Daily_LCY\[daily_report.xls]A&L'!$B:$Q)
to
=SUM('C:\\Daily_LCY\[14_06.xls]A&L'!$B:$Q).
I don't know how to make the formula to stay constant without changing the file name while the file only changes its name.
Any ideas?