kelly mort
Well-known Member
- Joined
- Apr 10, 2017
- Messages
- 2,169
- Office Version
- 2016
- Platform
- Windows
Code:
Sub SaveFileCode
ChDrive ThisWorkbook.Path
ChDir ThisWorkbook.Path
FileSaveAs = Application.GetSaveAsFilename(FileFilter:="Exel Files (*.xlsm),*.xlsm",Title:="Add Name")
If FileSaveAs = False Then
MsgBox "Operation terminated"
Else
Application.EnableEvents=False
ThisWorkbook.SaveAs FileName:=FileSaveAs, FileFormat:=52, Password:="", writerespassword:="", ReadOnlyRecommended:=False
Application.EnableEvents=True
End Sub
When I click on the Save button, I want to verify if the workbook (original) is in the same folder as the copy (new workbook to be saved).
If that can be done, can someone please show me the way and how it's done?
Thanks in advance