sofi77
Technical User
- Nov 4, 2011
- 3
I created a Macro to automate saving each tab to one of my folders.
This is an example of one of the steps ( I have 20 tabs and the same process is repeated for each one):
Sheets("790500001").Select
Sheets("790500000").Copy
ActiveWorkbook.SaveAs Filename:= _
"J:\Investor_Reporting\IR 2011\Dat A .CSV and .XLS files to Trustees and MS\Remit GE.xls" _
, FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWindow.Close
When I run the Macro, after the end of every step, I get a prompt asking if I want to replace the existing file. the answer is always going to be "yes" so how do modify the code to stop these prompts.
I would really appreciate your help.
Thank you
This is an example of one of the steps ( I have 20 tabs and the same process is repeated for each one):
Sheets("790500001").Select
Sheets("790500000").Copy
ActiveWorkbook.SaveAs Filename:= _
"J:\Investor_Reporting\IR 2011\Dat A .CSV and .XLS files to Trustees and MS\Remit GE.xls" _
, FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWindow.Close
When I run the Macro, after the end of every step, I get a prompt asking if I want to replace the existing file. the answer is always going to be "yes" so how do modify the code to stop these prompts.
I would really appreciate your help.
Thank you