Try this (haven't tested it):
Sub SaveJobFile()
Dim stFileName As String, stFolder As String
If Range("AZ2") = 0 Then
stFileName = Sheet41.Range("B90") & "\" & "\Estimates\" & Range("B88") & " EST" & ".xls"
Range("AZ2") = 1
ActiveWorkbook.SaveAs Filename:=stFileName
MsgBox stFileName & " was saved.", vbInformation + vbOKOnly, "Workbook Saved"
Else
Response = MsgBox("A file with this name already exist, do you still want to save it", vbOKCancel)
If Response = vbOK Then
stFileName = Sheet41.Range("B90") & "\" & "\Estimates\" & Range("B88") & " EST" & Range("AZ2").Value & ".xls"
Range("AZ2").Value = Range("AZ2").Value + 1
ActiveWorkbook.SaveAs Filename:=stFileName
MsgBox stFileName & " was saved.", vbInformation + vbOKOnly, "Workbook Saved"
Response = ""
End If
End If
End Sub
Bookmarks