Hello all, this issue has been stumping me for the longest time and I would greatly appreciate your collective help.
Situation:
I have a worksheet that needs to hide/unhide rows based on a dropdown box (form control). The dropdown box has 3 choices. Depending on the value of the dropdown box, it will hide certain rows. However, the worksheet must be protected because there are formulas within Excel throughout the sheet and as these are being designed for another group, I'd like to have them protected to prevent accidental errors.
Error:
When the sheet is protected and I change the dropdown box (for example from selection 1 to selection 3), I receive a run-time error: 1004. Unable to set the Hidden property of the Range class.
Code:
This is the partial code used. The bolded line is highlighted after clicking on debug.![]()
Please Login or Register to view this content.
Any help would be great.
Attachment included to help. The error is encountered any time the dropdown box is changed.
Bookmarks