I have this code which autosaves a file to a certain location, however it automatically saves it with today's date
Dim filename As String
Dim location As String
Save = MsgBox("EXPORT?", vbYesNo, "EXPORT")
If Save = vbYes Then
filename = "sample name" & Format(Date, "yyyy_mm_dd") & "_EMEA.csv"
However it actually needs to be saved with the last Friday's date. How can I change it so I can either enter just the date part of the name into the message box, or just to manually enter in the name of the file each time??
Any help would be greatly appreciated!
Dim filename As String
Dim location As String
Save = MsgBox("EXPORT?", vbYesNo, "EXPORT")
If Save = vbYes Then
filename = "sample name" & Format(Date, "yyyy_mm_dd") & "_EMEA.csv"
However it actually needs to be saved with the last Friday's date. How can I change it so I can either enter just the date part of the name into the message box, or just to manually enter in the name of the file each time??
Any help would be greatly appreciated!