Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a worksheet where I block selection access to locked cells. This
works fine while users are working with the sheet. What I am finding is that when the file is opened, selection access is now allowed although changing the cell is still protected. This does not happen all the time. As a test, I tried to access the locked cells BEFORE I saved the workbook and I could not. A few hours later or minutes before this port I opened the workbook and was able to select what should have been selection denied cells. Any ideas? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Did some more digging. Time has nothing to do with anything. I'll save the
protected sheet, close Excel, Open Excel and the workbook, and I can select the cells that should be access blocked. It appears that upon opening the workbook, the "Select Locked Cells" attribute is enabled. Anyone have any idea why? "Greg" wrote: I have a worksheet where I block selection access to locked cells. This works fine while users are working with the sheet. What I am finding is that when the file is opened, selection access is now allowed although changing the cell is still protected. This does not happen all the time. As a test, I tried to access the locked cells BEFORE I saved the workbook and I could not. A few hours later or minutes before this port I opened the workbook and was able to select what should have been selection denied cells. Any ideas? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes! Finally I can help someone...
Greg, I had this same exact problem a while back and it was driving me nuts. I used the following code to end the maddness. Modify to suit your needs, though it should work as-is if you drop it into your general declarations. Just go to the VB Editor, click on THIS WORKBOOK and paste the code in. It seems like I had to save, close, and open it a few times, but it does kick in! Damian Carrillo Private Sub Workbook_Open() UpdateLinks = xlUpdateLinksAlways Dim ws As Worksheet For Each ws In ActiveWorkbook.Worksheets ws.Protect Password:="" ws.Protect AllowInsertingRows:=True ws.Protect AllowSorting:=True ws.Protect AllowFiltering:=True ws.Protect AllowDeletingRows:=True ws.EnableSelection = xlUnlockedCells Next ws End Sub |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Damian !!!
You Da' Man "Damian" wrote: Yes! Finally I can help someone... Greg, I had this same exact problem a while back and it was driving me nuts. I used the following code to end the maddness. Modify to suit your needs, though it should work as-is if you drop it into your general declarations. Just go to the VB Editor, click on THIS WORKBOOK and paste the code in. It seems like I had to save, close, and open it a few times, but it does kick in! Damian Carrillo Private Sub Workbook_Open() UpdateLinks = xlUpdateLinksAlways Dim ws As Worksheet For Each ws In ActiveWorkbook.Worksheets ws.Protect Password:="" ws.Protect AllowInsertingRows:=True ws.Protect AllowSorting:=True ws.Protect AllowFiltering:=True ws.Protect AllowDeletingRows:=True ws.EnableSelection = xlUnlockedCells Next ws End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I restore cell gridlines lost after coloring a cell? | Excel Discussion (Misc queries) | |||
LOST IN A CELL??? | Excel Discussion (Misc queries) | |||
Cell formatting changes lost | Excel Discussion (Misc queries) | |||
How do I keep a running total of pounds lost and percentage lost | Excel Discussion (Misc queries) | |||
lost my password (worksheet protect) | Excel Discussion (Misc queries) |