Hi, Steve,
you could have edited the opening post instead of repeating the post.
I´d go a different way:
Sub Savepath_1()
Dim FPATH As String
FPATH = "T:\PERSONAL FOLDERS\STEVO56\ILS Test Rig Phase 1\Test Spreadsheet Dump\" & Range("R5").Value & ".XLSM"
If Len(Dir(FPATH)) > 0 Then
If MsgBox("File already exists. Do you want to save with same name?", vbYesNo, "File exists?") = vbYes Then
Kill FPATH
ActiveWorkbook.SaveAs FPATH, FileFormat:=52
End If
Else
ActiveWorkbook.SaveAs FPATH, FileFormat:=52
End If
End Sub
Sub Savepath_2()
Dim FPATH As String
FPATH = "T:\PERSONAL FOLDERS\STEVO56\ILS Test Rig Phase 1\Test Spreadsheet Dump\" & Range("R5").Value & ".XLSM"
If Len(Dir(FPATH)) > 0 Then
If MsgBox("File already exists. Do you want to save with same name?", vbYesNo, "File exists?") = vbYes Then
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs FPATH, FileFormat:=52
Application.DisplayAlerts = True
End If
Else
ActiveWorkbook.SaveAs FPATH, FileFormat:=52
End If
End Sub
Ciao,
Holger
Bookmarks