View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Overwrite existing file without prompt

Application.DisplayAlerts = False
Activeworkbook.SaveCopyAs "C:\Backups\Backup1.xls"
Application.DisplayAlerts = True

--
Regards,
Tom Ogilvy


"Mark" wrote in message
...
I am using Excel 97.

When backing up my files I am prompted by a message "file exists do you

want
to overwrite" or something to that effect.

Is there a way to override the prompt so that it is just overwritten?

Can someone assist with some code, please?

Thanks

--
Mark