ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA block warning (https://www.excelbanter.com/excel-programming/362152-vba-block-warning.html)

kokki

VBA block warning
 
In VBA code I delete an existing worksheet.
while doing this a warning comes and questions if you wish to delete this
worksheet.

How can I make that this mesage does not appear?
thx.
--
kokki

Norman Jones

VBA block warning
 
Hi Kokki,

Try:

Application.DisplayAlerts = False

'your code to delete the sheet

Application.DisplayAlerts = True


---
Regards,
Norman


"kokki" wrote in message
...
In VBA code I delete an existing worksheet.
while doing this a warning comes and questions if you wish to delete this
worksheet.

How can I make that this mesage does not appear?
thx.
--
kokki




kokki

VBA block warning
 
Hey Norman, thx it works.
--
kokki


"Norman Jones" wrote:

Hi Kokki,

Try:

Application.DisplayAlerts = False

'your code to delete the sheet

Application.DisplayAlerts = True


---
Regards,
Norman


"kokki" wrote in message
...
In VBA code I delete an existing worksheet.
while doing this a warning comes and questions if you wish to delete this
worksheet.

How can I make that this mesage does not appear?
thx.
--
kokki






All times are GMT +1. The time now is 05:10 PM.

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