Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Avoiding sheet deletion by VBA

Hi developers.

I would like to ask you for a little help with one task. I need to avoid
deletion of special sheet (= sheet with special name) by using VBA. I tried
Sheet events and also workbook events but there is no event like "do befor
deletion" os sth. else.

Can anybody help me how to prevent this task?

Thx.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Avoiding sheet deletion by VBA

As far as I know, there is no way to prevent this, other than
protecting the workbook, which will disable other actions as
well.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"PalikeFromSlovakia"
wrote in message
...
Hi developers.

I would like to ask you for a little help with one task. I need
to avoid
deletion of special sheet (= sheet with special name) by using
VBA. I tried
Sheet events and also workbook events but there is no event
like "do befor
deletion" os sth. else.

Can anybody help me how to prevent this task?

Thx.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Avoiding sheet deletion by VBA

You can protect the structure of the workbook so no sheet can be deleted.
Then provide the user a userform interface (as an example) that allows them
to delete or insert sheets by selecting options that run your code.

--
Regards,
Tom Ogilvy


"PalikeFromSlovakia" wrote in
message ...
Hi developers.

I would like to ask you for a little help with one task. I need to avoid
deletion of special sheet (= sheet with special name) by using VBA. I

tried
Sheet events and also workbook events but there is no event like "do befor
deletion" os sth. else.

Can anybody help me how to prevent this task?

Thx.



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
Prevent sheet deletion G and (ajk) Excel Discussion (Misc queries) 2 March 9th 07 09:18 AM
How do I link cells, sheet to sheet, to recognize row deletion Max Excel Programming 5 February 27th 06 10:27 PM
Prevent Sheet Deletion T-®ex[_60_] Excel Programming 7 September 7th 05 05:17 AM
Sheet deletion mitch Excel Discussion (Misc queries) 4 August 19th 05 12:10 AM
How to stop sheet deletion Jeff Excel Programming 1 January 28th 05 08:34 PM


All times are GMT +1. The time now is 06:45 PM.

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"