saintsfan77
New Member
- Joined
- Jul 20, 2019
- Messages
- 1
Hi,
I have a workbook with a daily report Sheet. I (move and copy) it each night and rename the file to the "Daily Report- mm/dd/yyyy, date of that work day. That file gets stored in a job number folder on the desktop and in that folder is another folder named Daily Reports. I have another sheet in the workbook named Email Body. In that sheet I have a macro button that copies the subject for an email. the Subject is pulling the job number, well, rig from the Job info sheet and the date from the daily report.
I would like the name of the subject to change the date at the end, to the cell in the Daily Report that contains the date. I would like it to automatically pull from the last generated Daily Report in the folder if thats possible. So if I make a file called Daily Report 7-19-2019.xls, it should grab the date from the cell in that file.
Instead I have to tell my formula which file to look for every day.
The formula is =CONCATENATE('Job Info.'!D6," / ",'Job Info.'!D7," / ", 'Job Info.'!D9," / ", 'Job Info.'!D5," /", "Daily Report - ",TEXT('C:\Users\GTMWD\Desktop\GT190681\Daily Report\[Daily Report 7-18-19.xlsx]Daily'!K10,"mm/dd/yy;@"))
Any help would be appreciated. Thank you all.
I have a workbook with a daily report Sheet. I (move and copy) it each night and rename the file to the "Daily Report- mm/dd/yyyy, date of that work day. That file gets stored in a job number folder on the desktop and in that folder is another folder named Daily Reports. I have another sheet in the workbook named Email Body. In that sheet I have a macro button that copies the subject for an email. the Subject is pulling the job number, well, rig from the Job info sheet and the date from the daily report.
I would like the name of the subject to change the date at the end, to the cell in the Daily Report that contains the date. I would like it to automatically pull from the last generated Daily Report in the folder if thats possible. So if I make a file called Daily Report 7-19-2019.xls, it should grab the date from the cell in that file.
Instead I have to tell my formula which file to look for every day.
The formula is =CONCATENATE('Job Info.'!D6," / ",'Job Info.'!D7," / ", 'Job Info.'!D9," / ", 'Job Info.'!D5," /", "Daily Report - ",TEXT('C:\Users\GTMWD\Desktop\GT190681\Daily Report\[Daily Report 7-18-19.xlsx]Daily'!K10,"mm/dd/yy;@"))
Any help would be appreciated. Thank you all.