Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Protect cell range
I am trying to password protect a set of formulas so that users cannot change
them. For some reason I cannot get this to work with this specific file but can with others (following steps from Excel Help works with other files but not this one). The sheet will not let me change any cell regardless of the range I choose. If I choose a cell within my protected range it will ask for the range-specific password, otherwise it tells me the sheet is protected (needs the sheet-specific password). What am I missing? Would using CSEs or macros matter? Thanks in advance, MB |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Protect cell range
Select all the sheet, right click,
"Format Cells" "Protection" tab, untick the "locked". Then select the range you need and lock only the specific cells. Then proceed to "protection" command. Hope it helps! "Matt Beardsley" wrote: I am trying to password protect a set of formulas so that users cannot change them. For some reason I cannot get this to work with this specific file but can with others (following steps from Excel Help works with other files but not this one). The sheet will not let me change any cell regardless of the range I choose. If I choose a cell within my protected range it will ask for the range-specific password, otherwise it tells me the sheet is protected (needs the sheet-specific password). What am I missing? Would using CSEs or macros matter? Thanks in advance, MB |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Protect cell range
Excellent. Thanks for the help.
Now another issue: I want to able to sort the sheet with a macro, but with the range protected it gives me an error (Run Time Error '1004': Sort method of Range class failed). How do I get around this? I need to protect these formulas but more importantly need to sort the data fairly often. Can't sort manually as Sort is gayed out due to protection. I guess have the macro unprotect, sort, and reprotect? Not sure how to do this or if that is the right way... Thanks again, MB "ice" wrote: Select all the sheet, right click, "Format Cells" "Protection" tab, untick the "locked". Then select the range you need and lock only the specific cells. Then proceed to "protection" command. Hope it helps! "Matt Beardsley" wrote: I am trying to password protect a set of formulas so that users cannot change them. For some reason I cannot get this to work with this specific file but can with others (following steps from Excel Help works with other files but not this one). The sheet will not let me change any cell regardless of the range I choose. If I choose a cell within my protected range it will ask for the range-specific password, otherwise it tells me the sheet is protected (needs the sheet-specific password). What am I missing? Would using CSEs or macros matter? Thanks in advance, MB |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Protect cell range
Sorry for the delay but I just logged in.
I know, I had the same problem. You have to "edit" the specific macro and add manually the password. See the example I have for you: The password is in (_) and is next to the words protect and unprotect. Hope it helps! End With Sheets("PRICE LIST").Select ActiveSheet.Unprotect (123456) Selection.AutoFilter Field:=7, Criteria1:="NEW*" ActiveWindow.SmallScroll Down:=-6 ActiveSheet.Protect (123456), DrawingObjects:=True, Contents:=True, Scenarios:=True _ , AllowDeletingColumns:=True, AllowDeletingRows:=True, AllowSorting:=True _ , AllowFiltering:=True, AllowUsingPivotTables:=True End Sub "Matt Beardsley" wrote: Excellent. Thanks for the help. Now another issue: I want to able to sort the sheet with a macro, but with the range protected it gives me an error (Run Time Error '1004': Sort method of Range class failed). How do I get around this? I need to protect these formulas but more importantly need to sort the data fairly often. Can't sort manually as Sort is gayed out due to protection. I guess have the macro unprotect, sort, and reprotect? Not sure how to do this or if that is the right way... Thanks again, MB "ice" wrote: Select all the sheet, right click, "Format Cells" "Protection" tab, untick the "locked". Then select the range you need and lock only the specific cells. Then proceed to "protection" command. Hope it helps! "Matt Beardsley" wrote: I am trying to password protect a set of formulas so that users cannot change them. For some reason I cannot get this to work with this specific file but can with others (following steps from Excel Help works with other files but not this one). The sheet will not let me change any cell regardless of the range I choose. If I choose a cell within my protected range it will ask for the range-specific password, otherwise it tells me the sheet is protected (needs the sheet-specific password). What am I missing? Would using CSEs or macros matter? Thanks in advance, MB |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Record changing cell data into a column or range | Excel Worksheet Functions | |||
Can I Protect a cell range only? | Excel Discussion (Misc queries) | |||
Match function...random search? | Excel Worksheet Functions | |||
Look for change next blank cell in Range | Excel Worksheet Functions | |||
GET.CELL | Excel Worksheet Functions |