i have a little snippet of code here that will save a file based on an address i type in c5 ..... is it possible to set it up so that if there is already an estimate of that address in there.... that an option pops up that will alow me to over write or save as address #2
Sub SaveActiveSheet()
On Error GoTo userC
ActiveSheet.Copy
ActiveWorkbook.SaveAs Filename:="C:\Documents and Settings\Administrator\Desktop\estimates 05\" & [c5].Value & ".xls"
MsgBox "your worksheet has just been saved!"
ActiveWorkbook.Close
Exit Sub
userC:
MsgBox "There is a file with that name already, File Not Saved!"
Exit Sub
End Sub
Sub SaveActiveSheet()
On Error GoTo userC
ActiveSheet.Copy
ActiveWorkbook.SaveAs Filename:="C:\Documents and Settings\Administrator\Desktop\estimates 05\" & [c5].Value & ".xls"
MsgBox "your worksheet has just been saved!"
ActiveWorkbook.Close
Exit Sub
userC:
MsgBox "There is a file with that name already, File Not Saved!"
Exit Sub
End Sub