The title probably does not describe my issue.
I am using code on a "Master" file to automatically change the file name and add the current date on the end upon opening. Is there anyway to disable that macro automatically on the new file created?
The following is the code I call when master file opens...
I am using code on a "Master" file to automatically change the file name and add the current date on the end upon opening. Is there anyway to disable that macro automatically on the new file created?
The following is the code I call when master file opens...
Code:
Sub Save_File_As()
' This macro is used to change the name of the file when initially opened to add the date at the end
' and close the master file.
Dim file_name As Variant
file_name = Application.GetSaveAsFilename(FileFilter:="Microsoft Excel file (*.xls), *.xls")
If file_name <> False Then
ActiveWorkbook.SaveAs "New File Name" & " " & Format(Date, "dddd mm-dd-yyyy")
End If
Sheets("Sheet Name").Select
Range("c4").Select
ActiveWorkbook.Save
End Sub