Hi to all !,

I made form for Log In in excel (password protected). But now i want to make a condition if Log In User 1 make workbook/worksheet unprotected if User 2 log in make workbook/worksheet protected.

Any idea how to do it? Make a loop (i'am not good at it), make if statement?

Thank you for help!


my code:
Please Login or Register  to view this content.
LogIn.jpg