Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
VK VK is offline
external usenet poster
 
Posts: 3
Default deleting sheet protection

Hi people!

I want prevent of deleteing sheets I originally have.
I have a Macro who add a new sheet, which must be deleteable.
OK. I know how to protect whole Workbook, but it's not what I need ,because
I can't add new worksheet. (delete too)



Any help!

Vlado




  #2   Report Post  
Posted to microsoft.public.excel.programming
VK VK is offline
external usenet poster
 
Posts: 3
Default deleting sheet protection

Another thing:

New sheets from macro are colored:
..........ActiveWorkbook.ActiveSheet.Tab.ColorInde x = 34
Maybe is possible to disable Delete< in relation of tab color.
Something like.

If ActiveSheet.Tab.ColorIndex < 34 then disable Delete

Is that possible?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default deleting sheet protection

In you code,
unprotect the workbook, add the sheet, reprotect the workbook.

--
Regards,
Tom Ogilvy

"VK" wrote in message
...
Hi people!

I want prevent of deleteing sheets I originally have.
I have a Macro who add a new sheet, which must be deleteable.
OK. I know how to protect whole Workbook, but it's not what I need

,because
I can't add new worksheet. (delete too)



Any help!

Vlado






  #4   Report Post  
Posted to microsoft.public.excel.programming
VK VK is offline
external usenet poster
 
Posts: 3
Default deleting sheet protection

Tom,

This would be good option but, problem is this new sheets must be daleteable
for user.
I don't know how manage that.





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default deleting sheet protection

Provide an interface for the user, such as a menu item or command button
that executes your code that deletes the sheet.

--
Regards,
Tom Ogilvy

"VK" wrote in message
...
Tom,

This would be good option but, problem is this new sheets must be

daleteable
for user.
I don't know how manage that.







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
Excel Data Protection Best Practice: AKA: Real Sheet Protection Mushman(Woof!)[_2_] Excel Discussion (Misc queries) 4 December 30th 09 01:20 AM
Excel Data Protection- AKA: Sheet/Macro Password Protection Mushman(Woof!) Setting up and Configuration of Excel 0 December 29th 09 06:50 AM
Q about sheet protection TheMilkGuy Excel Discussion (Misc queries) 2 July 4th 09 04:52 PM
Sheet Protection wally Excel Worksheet Functions 8 May 21st 06 09:28 PM
Sheet protection error msg - Unrequested sheet activation deltree[_3_] Excel Programming 0 January 28th 04 06:20 PM


All times are GMT +1. The time now is 04:53 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"