I have a macro that is fine with me. Saves the existing file as a new one and renames it.
I wonder if it is possible to create a macro that will close and rename the existing file in the same way?
Code:
Sub rename()
F$ = ActiveWorkbook.Path & ActiveWorkbook.Sheets(1).["\"&AB2&"_"&U2&"_"&AA2&"_"] & ActiveSheet.Name & ".xlsx"
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs F, 51
Application.DisplayAlerts = True
End Sub
I wonder if it is possible to create a macro that will close and rename the existing file in the same way?