Hello Andy,
Bliadhna Mhath Ùr!
Glad you bumped the post. This macro should be closer to what you want. This will save a copy of the workbook the macro is in to the directory you specify and using a name you provide containing the date the user entered. The parameters for the file and folder are marked in blue.
Sub Macro1A()
Dim InputDate As Variant
Dim FileType As String
Dim myFileName As String
Dim myFolder As String
FileType = ".xlsm"
myFileName = "Report"
myFolder = "C:\Chambers-Smith\documents\work"
EnterDate:
InputDate = InputBox("Please enter date of Report")
If InputDate = "" Then Exit Sub
If Not IsDate(InputDate) Then
MsgBox "The date you entered is not valid"
GoTo EnterDate
End If
InputDate = " " & Replace(InputDate, "/", "-")
ThisWorkbook.SaveAs myFolder & "\" & myFileName & InputDate & FileType
End Sub
Bookmarks