I am using the following code to save a current workbook but I would like to modify it to save the current workbook as the new name and open that new workbook and close the original and leaving it untouched. Basically, using a Saveas instead. Currently it just saves the workbook as a new file and the user keeps working on the original workbook, not the saved one.
here is my code...
Cheers
Guy
here is my code...
Code:
Sub SaveAsXLS()
Dim FName As String
Dim FNumber As String
Dim fPath As String
FName = Range("Account_Name").Value
fPath = Range("FilePath").Value
ActiveWorkbook.SaveCopyAs fPath & FName & " - " & Format(Date, "YYYY.MM.DD") & ".xlsm"
MsgBox "The File Has Been Saved as an Excel File" & vbNewLine & vbNewLine & "File Name: " & FName & vbNewLine & "Destination: " & fPath & vbNewLine
End Sub
Cheers
Guy