Thread: Save As Macro
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max2073 Max2073 is offline
external usenet poster
 
Posts: 40
Default Save As Macro

I have created a macro that I use weekly. The macro names and saves the
spreadsheet.

Currently, when saving the spreadsheet I am asked "A file name
€˜c:\filename.xls already exists in this location. Do you want to replace
it?"

Is there a way that I can amend the macro to automatically answer YES.

ActiveWorkbook.SaveAs Filename:="c:\filename.xls", _
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False

Thanks