I a using a macro to hide and unhide rows.
The sheet is protected and cells are locked except for the ones that data entry is to made into. This makes it easier of users to tab through the data entry - so the code has to unprotect the sheet, unhide the rows and then protect the sheet again.
This it does, but the protection properties change and the user can then select locked cells.
Is there a way to maintain the protection properties?
Code being used is as below
ActiveSheet.Unprotect Password:="myPW"
Select Case LCase(Rng)
Case "yes", "Select...."
Rows("41:65").EntireRow.Hidden = True
Case "no"
Rows("41:65").EntireRow.Hidden = False
End Select
ActiveSheet.Protect Password:="myPW"
Regards
Ed
Bookmarks