ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Turn Off Alert Before Overwriting Message Box (https://www.excelbanter.com/excel-programming/350909-turn-off-alert-before-overwriting-message-box.html)

JR_06062005[_2_]

Turn Off Alert Before Overwriting Message Box
 
In a macro I save a workbook which overwrites another. The problem is every
time the macro is excuted, I get a message box asking if I want to overwrite
the existing file. Is there a way to turn this message off?

I've tried placing the following in my macro, but it has no effect:
Application.AlertBeforeOverwriting = False



Bob Phillips[_6_]

Turn Off Alert Before Overwriting Message Box
 
Try preceding with

Application.DisplayAlerts = False

and set back to True afterwards

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"JR_06062005" wrote in message
...
In a macro I save a workbook which overwrites another. The problem is

every
time the macro is excuted, I get a message box asking if I want to

overwrite
the existing file. Is there a way to turn this message off?

I've tried placing the following in my macro, but it has no effect:
Application.AlertBeforeOverwriting = False





JR_06062005[_2_]

Turn Off Alert Before Overwriting Message Box
 
That works. Thanks

"Bob Phillips" wrote:

Try preceding with

Application.DisplayAlerts = False

and set back to True afterwards

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"JR_06062005" wrote in message
...
In a macro I save a workbook which overwrites another. The problem is

every
time the macro is excuted, I get a message box asking if I want to

overwrite
the existing file. Is there a way to turn this message off?

I've tried placing the following in my macro, but it has no effect:
Application.AlertBeforeOverwriting = False







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

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