Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protection
Hi
I have two questions. The first one: is it possible to protect certain parts and not the whole worksheet and, The second one: is it possible to prevent a person changing the name of a worksheet. Thanks Greg |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protection
1. you can unlock the cells you don't want protected under format cells, and
then protect the sheet 2. use the sheet code name in any code you write, this is one way to assure your code runs (if that's the reason you want to restrict the name change) in the vbe, you can see the code name ( and change it) by clicking view and then properties window. it's the one at the top with name in the () -- Gary "Gregc." wrote in message oups.com... Hi I have two questions. The first one: is it possible to protect certain parts and not the whole worksheet and, The second one: is it possible to prevent a person changing the name of a worksheet. Thanks Greg |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protection
just to elaborate a little,
you can also choose tools/protection/protect workbook and then select structure and the sheets will not be able to be renamed (use a password if you want to) also, if you didn't want to do this, you could use something like this: if you rename sheet1's tab and then ran this code, it would rename it back to sheet1. Sub test2() Sheet1.Name = "Sheet1" Worksheets("Sheet1").Range("a1").Value = 987 End Sub sheet1.name is using the codename to rename the tab "sheet1" if you wanted sheet1 to be named Jan then this code would do that Sub test2() Sheet1.Name = "Jan" Worksheets("Jan").Range("a1").Value = 123 End Sub use either option you want. -- Gary "Gregc." wrote in message oups.com... Hi I have two questions. The first one: is it possible to protect certain parts and not the whole worksheet and, The second one: is it possible to prevent a person changing the name of a worksheet. Thanks Greg |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel Data Protection Best Practice: AKA: Real Sheet Protection | Excel Discussion (Misc queries) | |||
Excel Data Protection- AKA: Sheet/Macro Password Protection | Setting up and Configuration of Excel | |||
WS Protection: Different Levels of Protection on Different Ranges | Excel Discussion (Misc queries) | |||
Cell Protection vs. Worksheet Protection | Excel Discussion (Misc queries) | |||
Worksheet protection is gone and only wokbook protection can be se | Excel Discussion (Misc queries) |