Using some part of below code, I can Hide & Lock row and after 1 row hide & lock, this code not working on a protected sheet ......
![]()
Please Login or Register to view this content.
Using some part of below code, I can Hide & Lock row and after 1 row hide & lock, this code not working on a protected sheet ......
![]()
Please Login or Register to view this content.
You need to unprotect the sheet at the start of the routine and restore the protection at the end. If the sheet is password protected by the user, then your code won't know the password and you are out of luck. To test if the worksheet has been protected, look at the sheet's .ProtectContents property.
_
...How to Cross-post politely...
..Wrap code by selecting the code and clicking the # or read this. Thank you.
Below code working on Protect sheet, after adding additional code its not working
Can you please add below codes
![]()
Please Login or Register to view this content.
You can't have two different Worksheet_Change events, they need to be combined.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks