ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   dont confirm save with yes/no/cancell (https://www.excelbanter.com/excel-programming/391528-dont-confirm-save-yes-no-cancell.html)

pswanie

dont confirm save with yes/no/cancell
 
i got a macro to save as a workbook. it needs to overright an excisting
one. how do i get it not to ask/say i am about to overight?

PCLIVE

dont confirm save with yes/no/cancell
 
Try this:

Before your save code:
Application.DisplayAlerts = False

After your save code:
Application.DisplayAlerts = True

HTH,
Paul

"pswanie" wrote in message
...
i got a macro to save as a workbook. it needs to overright an excisting
one. how do i get it not to ask/say i am about to overight?




Tom Ogilvy

dont confirm save with yes/no/cancell
 
Application.DisplayAlerts = False
Activeworkbook.SaveAs . . .
Application.DisplayAlerts = True

--
Regards,
Tom Ogilvy


"pswanie" wrote:

i got a macro to save as a workbook. it needs to overright an excisting
one. how do i get it not to ask/say i am about to overight?



All times are GMT +1. The time now is 07:03 PM.

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