ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   save as (https://www.excelbanter.com/excel-programming/274348-save.html)

step

save as
 
Hi
I'm writeing a macro that list's a directory in a spreadsheet then saves to
that directory. It works fine the firs time round but next time it's run it
is asking to overwrite the previous file. I want it to overwrite without
asking. there is around 1000 folders that it saves to so it's a bit tedious
pressing ok 1000 times. is there any way to do this?

cheers



John Wilson

save as
 
step,

Try
Application.DisplayAlerts = False
before the save code
and set it back to True afterwards.

John

step wrote:

Hi
I'm writeing a macro that list's a directory in a spreadsheet then saves to
that directory. It works fine the firs time round but next time it's run it
is asking to overwrite the previous file. I want it to overwrite without
asking. there is around 1000 folders that it saves to so it's a bit tedious
pressing ok 1000 times. is there any way to do this?

cheers




All times are GMT +1. The time now is 10:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com