Hello,
I am trying to lock a checkbox that is assigned to a macro so that it cannot be changed once the macro has initiated. If a user tries to uncheck the box the macro tries to re-run. I feel like protecting the drawing objects in the sheet would be the easiest way to solve this but if someone has a better idea feel free. I cannot directly define the checkbox name in my code because the checkboxes themselves are changing and being created due to previous macros in the form. I would need a variable and I don't know how to do that.
Right now I am using:
ActiveSheet.Protect DrawingObjects:=True
Although the code does protect the sheet the checkbox can still be modified... I am guessing that I need to lock something else but I am not sure what. I cannot lock the whole worksheet because some fields need to be filled in by the user.
Any ideas?
Thank you,
Ben
Bookmarks