Why does a worksheet change event not work if the sheet is protected but the cell that the event is running in is not a protected / Hidden cell.
Why does a worksheet change event not work if the sheet is protected but the cell that the event is running in is not a protected / Hidden cell.
You will have to update your protection to include the UserInterfaceOnly:=True parameter. This parameter must be reset each time you open the workbook, it doesn't "persist".
Once you have reset the protection to include that parameter, your macros will continue to work.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
how would I add that here is the code
Please Login or Register to view this content.
Nowhere. You need to create a macro to reapply the protection to your sheet when you first open your workbook. You can put it into a Workbook_Open() event in the ThisWorkbook module so it runs automatically when the workbook starts. This is where you will add the UserInterfaceOnly:=True option to the regular protection code.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks