This will return a 1004 runtime error and stop if the file already exists and the and the user selects No or Cancel during the "save as".'Save file Dim Path As String Path = CreateObject("WScript.Shell").SpecialFolders("Desktop") & "\" ActiveWorkbook.SaveAs Path & "filename.xlsm" MsgBox "File filename.xlsm saved to desktop!"
Bookmarks