Hello all,
I've been trying everything and searching without luck. I'm trying to save a file with an Ordinal date (1st, 2nd, 3rd). I need the name to look like Summary June 10th to June 16th.
The code I have so far is:
ActiveWorkbook.SaveAs ("C:\Users\Laura" _ & "Summary " & Application.WorksheetFunction.Proper(Application.WorksheetFunction.Text(Now() - 7, "Mmmm")) _
& " ") & Day(Now() - 7) & " " & "to" & " " _
& Application.WorksheetFunction.Proper(Application.WorksheetFunction.Text(Now() - 7, "Mmmm")) _
& " " & Day(Now() - 1) & ".xlsx"
Please let me know if you need me to be more clear!
Regards,
I've been trying everything and searching without luck. I'm trying to save a file with an Ordinal date (1st, 2nd, 3rd). I need the name to look like Summary June 10th to June 16th.
The code I have so far is:
ActiveWorkbook.SaveAs ("C:\Users\Laura" _ & "Summary " & Application.WorksheetFunction.Proper(Application.WorksheetFunction.Text(Now() - 7, "Mmmm")) _
& " ") & Day(Now() - 7) & " " & "to" & " " _
& Application.WorksheetFunction.Proper(Application.WorksheetFunction.Text(Now() - 7, "Mmmm")) _
& " " & Day(Now() - 1) & ".xlsx"
Please let me know if you need me to be more clear!
Regards,