Darren_workforce
Board Regular
- Joined
- Oct 13, 2022
- Messages
- 146
- Office Version
- 365
- Platform
- Windows
Hello,
I have a macro file that I setup for my boss that saves a file directly into her folder as "Queue count.xlsx". She then goes and renames it "Queue count [date].xlsx" so that she can keep historical records. My question is: is it possible to have a message box generate which would ask "Date?" and then once the date is entered, it is added onto the filename directly and saved accordingly? Below is the save code I have:
The date format she uses is "m.dd.yy"
I have a macro file that I setup for my boss that saves a file directly into her folder as "Queue count.xlsx". She then goes and renames it "Queue count [date].xlsx" so that she can keep historical records. My question is: is it possible to have a message box generate which would ask "Date?" and then once the date is entered, it is added onto the filename directly and saved accordingly? Below is the save code I have:
VBA Code:
Sub new_workbook()
Worksheets(Array("Raw paste data", "Q breakdown", "Call vs Staff")).Copy
ActiveWorkbook.SaveAs "G:\Supervisors\Lisa\Queue count" & ".xlsx"
The date format she uses is "m.dd.yy"