ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   avoid message that asks for confirm delete sheet (https://www.excelbanter.com/excel-programming/433456-avoid-message-asks-confirm-delete-sheet.html)

Craig

avoid message that asks for confirm delete sheet
 
What statement can avoid the confirmation of deleting a worksheet during a
macro run?

thank you

Mike H

avoid message that asks for confirm delete sheet
 
Craig,

Application.displayalerts=false

'your delete code

Application.displayalerts=true

Mike

"Craig" wrote:

What statement can avoid the confirmation of deleting a worksheet during a
macro run?

thank you



All times are GMT +1. The time now is 11:42 AM.

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