ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Confirm Delete Message Disable (https://www.excelbanter.com/new-users-excel/49319-confirm-delete-message-disable.html)

RiosPapa

Confirm Delete Message Disable
 
When I delete a sheet which has data I get the standared confirmation dialog
allowing me to delete or cancel. This is a problem because I would like to do
this from a remote VB pgrogam.

Is there a way to disable this dialog ?

Alan

Try,

Application.DisplayAlerts = False
'Your code to do your thing
Application.DisplayAlerts = True

Regards,
Alan
"RiosPapa" wrote in message
...
When I delete a sheet which has data I get the standared confirmation
dialog
allowing me to delete or cancel. This is a problem because I would like to
do
this from a remote VB pgrogam.

Is there a way to disable this dialog ?




RiosPapa

Yes this did the trick, thankyou for the timely and accurate support,
Have a great day

"Alan" wrote:

Try,

Application.DisplayAlerts = False
'Your code to do your thing
Application.DisplayAlerts = True

Regards,
Alan
"RiosPapa" wrote in message
...
When I delete a sheet which has data I get the standared confirmation
dialog
allowing me to delete or cancel. This is a problem because I would like to
do
this from a remote VB pgrogam.

Is there a way to disable this dialog ?






All times are GMT +1. The time now is 01:21 PM.

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