I'm trying to create a macro that will protect and unprotect 10 sheets in a workbook.
i have the code to protect etc. i'm having a problem here:
i created a form named frmPassword where i have a text field called My_Password.
what code would i use to open up that form and enter in a password, then when i click ok to assign whatever was in My_Password to a variable called My_Pass.
I tried My_Pass=frmPassword.My_Password but that doesnt work, probably because i never opened the form.
any help?
Bookmarks