yes, it deletes a sheet. but I want to delet it in a normal way, but without
alerts.
if I rightclick the sheet and select "delete", an alert appears.
Is there any "Deletesheet" event that could intercept it?
Is there a way to create non-standard, custom alerts?
Thank you very much for your help!
"Don Guillett" wrote:
try this. true will automatically come back after the macro.
Sub delsheet()
Application.DisplayAlerts = False
ActiveSheet.Delete
End Sub
--
Don Guillett
SalesAid Software
"andriil" wrote in message
...
Is there any possibility to create a custom event in VBA (excel)?
I'm trying to block a prompt that is shown when I delete a sheet with data
on it. There's no such option in "Options". I could do it via macro, but
there seems to be no "Worksheet_Delete" event or something. May be there
is
some possibility to create a custom event?
Thanks in advance for your help!