#1   Report Post  
Posted to microsoft.public.excel.misc
andriil
 
Posts: n/a
Default custom event

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!
  #3   Report Post  
Posted to microsoft.public.excel.misc
andriil
 
Posts: n/a
Default custom event

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!




  #4   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben
 
Posts: n/a
Default custom event

Go back to your original posting and see some methods I posted.


Gord Dibben Excel MVP

On Fri, 16 Dec 2005 11:36:03 -0800, "andriil"
wrote:

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!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
custom color palette does not get transferred with the workbook. Excel 2003 libra2222 Excel Discussion (Misc queries) 3 December 2nd 05 01:02 AM
make custom formatting permanent simha Excel Worksheet Functions 1 November 15th 05 11:29 PM
Can you link a custom property to an Excel custom header text? LouErc Setting up and Configuration of Excel 0 November 8th 05 04:58 PM
Custom charts - default formatting tomjohns Charts and Charting in Excel 2 September 19th 05 01:34 PM
Keep custom format in new worksheet Buddy Excel Discussion (Misc queries) 2 March 14th 05 10:03 AM


All times are GMT +1. The time now is 03:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"