View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Matilda Matilda is offline
external usenet poster
 
Posts: 57
Default 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