This is just my trial sheet. It is where I practice the code I will be using in my project.
The scenario here is that when I tick the checkbox, I want to hide/unhide Rows 2:3 while the sheet is also protected.
Its main purpose is to let users know where to input the needed data depending on its category.
This is the flow of my project:
If B1=True
Then Rows 2:3 will be shown while the sheet is protected, letting users know that they have to input data into the specific cell in those rows
But, if B1=False
Then Rows 2:3 should be kept hidden while the sheet is protected
The code I am using now applies only when the sheet is UNPROTECTED. It would be nice if the code could be used whether the sheet is PROTECTED OR NOT.

Hope someone can help me with this one.
Thank you.