deleting sheet protection

  • Thread starter Thread starter VK
  • Start date Start date
V

VK

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
 
Another thing:

New sheets from macro are colored:
..........ActiveWorkbook.ActiveSheet.Tab.ColorIndex = 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?
 
In you code,
unprotect the workbook, add the sheet, reprotect the workbook.
 
Tom,

This would be good option but, problem is this new sheets must be daleteable
for user.
I don't know how manage that.
 
Provide an interface for the user, such as a menu item or command button
that executes your code that deletes the sheet.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top