Hello laffers,
That was tricky to do. The difficult part was getting the Enabled properties of the controls to be saved as False. Once the user form is closed, the values of the controls are lost. A public boolean variable is used to retain the state of the check box before the user form is closed. The macro is then called. If the value of the variable is True then all the controls Enabled properties are set to False and the workbook is saved. When the user form is displayed again, all the controls are disabled. I have attached an example workbook.
Lockout_Controls Module Code
UserForm CheckBox Code
Bookmarks