Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Replace Existing File
I am using the following code to save the active workbook:
ActiveWorkbook.SaveAs Filename:="C:\MyWorkbooks\TempFile.xls" How can I get it to select Yes if prompted to Replace the Existing File? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Replace Existing File
application.displayalerts = false
ActiveWorkbook.SaveAs Filename:="C:\MyWorkbooks\TempFile.xls" application.displayalerts = true Will save without a prompt. Lynn wrote: I am using the following code to save the active workbook: ActiveWorkbook.SaveAs Filename:="C:\MyWorkbooks\TempFile.xls" How can I get it to select Yes if prompted to Replace the Existing File? -- Dave Peterson |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Replace Existing File
Thanks Dave!
"Dave Peterson" wrote: application.displayalerts = false ActiveWorkbook.SaveAs Filename:="C:\MyWorkbooks\TempFile.xls" application.displayalerts = true Will save without a prompt. Lynn wrote: I am using the following code to save the active workbook: ActiveWorkbook.SaveAs Filename:="C:\MyWorkbooks\TempFile.xls" How can I get it to select Yes if prompted to Replace the Existing File? -- Dave Peterson |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Replace Existing File
"Dave Peterson" wrote: application.displayalerts = false ActiveWorkbook.SaveAs Filename:="C:\MyWorkbooks\TempFile.xls" application.displayalerts = true Will save without a prompt. Lynn wrote: I am using the following code to save the active workbook: ActiveWorkbook.SaveAs Filename:="C:\MyWorkbooks\TempFile.xls" How can I get it to select Yes if prompted to Replace the Existing File? -- Dave Peterson Hi Dave, i am using this syntax to save activeworkbook with a new filename, but file doesn't seem to save! Can't find it anywhere... what on earth am I doing ? Matilda |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Replace Existing File
Add one more line after the save:
msgbox activeworkbook.fullname Maybe it'll help you notice where you saved it. Although, you should be able to see that drive/path/name in your code (unless you changed the code). Matilda wrote: "Dave Peterson" wrote: application.displayalerts = false ActiveWorkbook.SaveAs Filename:="C:\MyWorkbooks\TempFile.xls" application.displayalerts = true Will save without a prompt. Lynn wrote: I am using the following code to save the active workbook: ActiveWorkbook.SaveAs Filename:="C:\MyWorkbooks\TempFile.xls" How can I get it to select Yes if prompted to Replace the Existing File? -- Dave Peterson Hi Dave, i am using this syntax to save activeworkbook with a new filename, but file doesn't seem to save! Can't find it anywhere... what on earth am I doing ? Matilda -- Dave Peterson |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Replace Existing File
Thanks! Can see it now!
"Dave Peterson" wrote: Add one more line after the save: msgbox activeworkbook.fullname Maybe it'll help you notice where you saved it. Although, you should be able to see that drive/path/name in your code (unless you changed the code). Matilda wrote: "Dave Peterson" wrote: application.displayalerts = false ActiveWorkbook.SaveAs Filename:="C:\MyWorkbooks\TempFile.xls" application.displayalerts = true Will save without a prompt. Lynn wrote: I am using the following code to save the active workbook: ActiveWorkbook.SaveAs Filename:="C:\MyWorkbooks\TempFile.xls" How can I get it to select Yes if prompted to Replace the Existing File? -- Dave Peterson Hi Dave, i am using this syntax to save activeworkbook with a new filename, but file doesn't seem to save! Can't find it anywhere... what on earth am I doing ? Matilda -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
SaveAs macro: How do I specify "Replace existing file?" | Excel Programming | |||
Do you want to replace existing file? | Excel Programming | |||
the file already exists - do you want to replace the existing file? | Excel Programming | |||
How do you replace an existing file, saying "yes" in a macro? | Excel Programming | |||
Automatically replace existing file on save | Excel Programming |