Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to write a macro that opens a file, saves it under a separate
file name, then opens a different file and saves that, etc. I would like to avoid Excel asking me if I want to overwrite the file within the macro. Is there a way I can either turn off warnings, or more preferably indicate to overwrite the file when in the code itself to avoid clicking "Yes" ten times. This is what the editor has as the recorded code. ChDir "S:\Test\Macros" Workbooks.Open Filename:="S:\Test\Macros\MacroA.xls" ChDir "S:\Test\Copies" ActiveWorkbook.SaveAs Filename:="S:\Test\Copies\FileA.xls", _ FileFormat:=xlNormal, Password:="", WriteResPassword:="", _ ReadOnlyRecommended:=False, CreateBackup:=False ActiveWindow.Close -- Sincerely, Beverly76 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I suppress the "Do you want to overwrite the destination cells" message | Setting up and Configuration of Excel | |||
How do you turn off "Save a copy/Overwrite changes" dialog box | Excel Discussion (Misc queries) | |||
selection.find shortening the procedure by skipping the "activate" part | Excel Programming | |||
Find a workbook and "overwrite it with the latest Excel format" | Excel Programming | |||
within a macro how can I suppress the warning pop "A file named xxxx.xls already exists in this location. Do you want to replace it?" | Excel Programming |